[FFmpeg-devel] [PATCH V1 1/4] lavf/flvdec: set AVFMT_TS_DISCONT flag on FLV demuxer

mypopy at gmail.com mypopy at gmail.com
Mon Mar 30 11:50:55 EEST 2020


On Mon, Mar 30, 2020 at 4:30 PM Jun Zhao <mypopydev at gmail.com> wrote:
>
> From: Jun Zhao <barryjzhao at tencent.com>
>
> There have been some reports about FLV timestamp discontinuities present.
> e,g, the file recorded from live RTMP FLV streaming, so add
> AVFMT_TS_DISCONT flag on FLV demuxer and also update the fate test
> fate-filter-aresample for test sample nellymoser-discont.flv.
>
> BTW: live_flv demuxer also enabled the AVFMT_TS_DISCONT flag.
>
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
>  libavformat/flvdec.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
> index 7c3e5b0..82afc31 100644
> --- a/libavformat/flvdec.c
> +++ b/libavformat/flvdec.c
> @@ -1365,6 +1365,7 @@ AVInputFormat ff_flv_demuxer = {
>      .read_close     = flv_read_close,
>      .extensions     = "flv",
>      .priv_class     = &flv_class,
> +    .flags          = AVFMT_TS_DISCONT
>  };
>
>  static const AVClass live_flv_class = {
> --
> 2.7.4
>

Need to update the fate test ref file from:
https://drive.google.com/file/d/1hRKzJlkX-EIcV9SJnL5fnK4zx6QecgyC/view?usp=sharing
for this patch


More information about the ffmpeg-devel mailing list