Browse Source

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>
tags/n4.0
Marton Balint 8 years ago
parent
commit
68f5384804
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      fftools/ffprobe.c

+ 2
- 1
fftools/ffprobe.c View File

@@ -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:


Loading…
Cancel
Save