[FFmpeg-devel] [PATCH] Fix for ticket 6796 (ffprobe show_frames ts dvbsubs infinate loop)

Hendrik Leppkes h.leppkes at gmail.com
Sat Dec 2 02:12:58 EET 2017


On Sat, Dec 2, 2017 at 1:05 AM, Hendrik Leppkes <h.leppkes at gmail.com> wrote:
>
>> @@ -2290,6 +2294,7 @@ static av_always_inline int process_frame(WriterContext *w,
>>      if (got_frame) {
>>          int is_sub = (par->codec_type == AVMEDIA_TYPE_SUBTITLE);
>>          nb_streams_frames[pkt->stream_index]++;
>> +        got_frame = 0;

Having looked at the logic some more, this part seems to be the key
(although implemented too broadly). We don't want to repeat the loop
for subtitles, so you set got_frame = 0 here - but you should only do
it for subtitles, not for everyhting.

- Hendrik


More information about the ffmpeg-devel mailing list