On 2011-12-10 12:41:55 +0100, Anton Khirnov wrote:
> It's not supposed to be set outside of lavf. Set r_frame_rate and
> avg_frame_rate instead.
> ---
>  libavformat/rawdec.c         |    2 +-
>  tests/ref/fate/h264-lossless |   18 +++++++++---------
>  2 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
> index 81dd8b4..589cdd5 100644
> --- a/libavformat/rawdec.c
> +++ b/libavformat/rawdec.c
> @@ -159,7 +159,7 @@ int ff_raw_video_read_header(AVFormatContext *s,
>          goto fail;
>      }
>  
> -    st->codec->time_base = (AVRational){framerate.den, framerate.num};
> +    st->r_frame_rate = st->avg_frame_rate = framerate;
>      avpriv_set_pts_info(st, 64, 1, 1200000);

ok
 
>  fail:
> diff --git a/tests/ref/fate/h264-lossless b/tests/ref/fate/h264-lossless
> index c6659ca..30a70b5 100644
> --- a/tests/ref/fate/h264-lossless
> +++ b/tests/ref/fate/h264-lossless

do you have an idea why this is the only sample which timestamps are
influenced by the change?

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to