Commit 68f53848 authored by Marton Balint's avatar Marton Balint

ffprobe: fix infinite loop in subtitle decoding

Fixes a regression since 2a88ebd0 which caused
an infinite loop in the subtitle decoding.

Fixes ticket #6796.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 9c249110
......@@ -2275,7 +2275,8 @@ static av_always_inline int process_frame(WriterContext *w,
break;
case AVMEDIA_TYPE_SUBTITLE:
ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_frame, pkt);
if (*packet_new)
ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_frame, pkt);
*packet_new = 0;
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment