You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffprobe: fix infinite loop in subtitle decoding
Fixes a regression since 2a88ebd096
which caused
an infinite loop in the subtitle decoding.
Fixes ticket #6796.
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -2275,6 +2275,7 @@ static av_always_inline int process_frame(WriterContext *w,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AVMEDIA_TYPE_SUBTITLE:
|
case AVMEDIA_TYPE_SUBTITLE:
|
||||||
|
if (*packet_new)
|
||||||
ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_frame, pkt);
|
ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_frame, pkt);
|
||||||
*packet_new = 0;
|
*packet_new = 0;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user