Sorry for delaying my reply.

Zhang Rui:
> ---
>  libavformat/concatdec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
> index d21805f..4c7217c 100644
> --- a/libavformat/concatdec.c
> +++ b/libavformat/concatdec.c
> @@ -310,6 +310,7 @@ static int open_file(AVFormatContext *avf, unsigned 
> fileno)
>          avformat_close_input(&cat->avf);
>          return ret;
>      }
> +    avf->bit_rate = cat->avf->bit_rate;
>      cat->cur_file = file;
>      if (file->start_time == AV_NOPTS_VALUE)
>          file->start_time = !fileno ? 0 :

I do not think this would be correct. The different concatenated files may
not have the same bit rate, therefore we can not know the real value without
opening all of them and averaging. This version would just have the value
change at each opened file, which is not supposed to happen.

The documentation says: "0 if not available", this is exactly what happens
here.

Why do you think this is useful?

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to