[FFmpeg-devel] [PATCH] fftools/ffplay: remove usage of internal AVInputFormat.read_seek field

Marton Balint cus at passwd.hu
Mon Jul 3 00:59:41 EEST 2023



On Thu, 29 Jun 2023, James Almer wrote:

> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> fftools/ffplay.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

LGTM, thanks.

Marton

>
> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
> index 15fd644974..663f61d8b2 100644
> --- a/fftools/ffplay.c
> +++ b/fftools/ffplay.c
> @@ -2639,7 +2639,7 @@ static int stream_component_open(VideoState *is, int stream_index)
>
>         if ((ret = decoder_init(&is->auddec, avctx, &is->audioq, is->continue_read_thread)) < 0)
>             goto fail;
> -        if ((is->ic->iformat->flags & (AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK)) && !is->ic->iformat->read_seek) {
> +        if (is->ic->iformat->flags & AVFMT_NOTIMESTAMPS) {
>             is->auddec.start_pts = is->audio_st->start_time;
>             is->auddec.start_pts_tb = is->audio_st->time_base;
>         }
> -- 
> 2.41.0
>
> _______________________________________________
> 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".
>


More information about the ffmpeg-devel mailing list