Browse Source

lavf: fix bug that caused has_decode_delay_been_guessed() to never return !=0

Possibly fixes Ticket1724

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 12 years ago
parent
commit
299c0b30a6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/utils.c

+ 2
- 0
libavformat/utils.c View File

@@ -911,6 +911,8 @@ static int is_intra_only(AVCodecContext *enc){
static int has_decode_delay_been_guessed(AVStream *st)
{
if(st->codec->codec_id != AV_CODEC_ID_H264) return 1;
if(!st->info) // if we have left find_stream_info then nb_decoded_frames wont increase anymore for stream copy
return 1;
#if CONFIG_H264_DECODER
if(st->codec->has_b_frames &&
avpriv_h264_has_num_reorder_frames(st->codec) == st->codec->has_b_frames)


Loading…
Cancel
Save