diff mbox series

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

Message ID 20230629214753.8595-1-jamrial@gmail.com
State Accepted
Commit 50f34172e0cca2cabc5836308ec66dbf93f5f2a3
Headers show
Series [FFmpeg-devel] fftools/ffplay: remove usage of internal AVInputFormat.read_seek field | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer June 29, 2023, 9:47 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 fftools/ffplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marton Balint July 2, 2023, 9:59 p.m. UTC | #1
On Thu, 29 Jun 2023, James Almer wrote:

> Signed-off-by: James Almer <jamrial@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@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
diff mbox series

Patch

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;
         }