[FFmpeg-devel] [PATCH 2/3] lavf/hlsdec: use public avformat_flush function

Steven Liu lq at chinaffmpeg.org
Wed Feb 19 04:32:44 EET 2020



> 2020年2月19日 上午8:21,rcombs <rcombs at rcombs.me> 写道:
> 
> ---
> libavformat/hls.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index 1f58e745a7..8181a631b6 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -2295,7 +2295,7 @@ static int hls_read_seek(AVFormatContext *s, int stream_index,
>         /* Reset the pos, to let the mpegts demuxer know we've seeked. */
>         pls->pb.pos = 0;
>         /* Flush the packet queue of the subdemuxer. */
> -        ff_read_frame_flush(pls->ctx);
> +        avformat_flush(pls->ctx);
> 
>         pls->seek_timestamp = seek_timestamp;
>         pls->seek_flags = flags;
> -- 
> 2.24.1
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe”.
LGTM


Thanks
Steven





More information about the ffmpeg-devel mailing list