Skip to content

Commit

Permalink
FFmpeg: устранено падение плеера при закрытии видеофайла VP9
Browse files Browse the repository at this point in the history
Проблема появилась после обновления FFmpeg (commit ea65a80).
  • Loading branch information
v0lt committed Apr 30, 2024
1 parent 6d00589 commit 0cb3f18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/custom_code/ffmpeg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* libavcodec/parser_list.c
* libavcodec/vc1.h
* libavcodec/vc1dec.c
* libavcodec/vp9.c

* libavutil/hwcontext_d3d11va.c
* libavutil/hwcontext_d3d11va.h
Expand Down
6 changes: 5 additions & 1 deletion src/ExtLib/ffmpeg/libavcodec/vp9.c
Original file line number Diff line number Diff line change
Expand Up @@ -1761,8 +1761,12 @@ static void vp9_decode_flush(AVCodecContext *avctx)

for (i = 0; i < 3; i++)
vp9_frame_unref(&s->s.frames[i]);
for (i = 0; i < 8; i++)
// ==> Start patch MPC
for (i = 0; i < 8; i++) {
ff_progress_frame_unref(&s->s.refs[i]);
ff_progress_frame_unref(&s->next_refs[i]);
}
// ==> End patch MPC

if (FF_HW_HAS_CB(avctx, flush))
FF_HW_SIMPLE_CALL(avctx, flush);
Expand Down

0 comments on commit 0cb3f18

Please sign in to comment.