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

James Almer git at videolan.org
Mon Jul 3 01:05:20 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jun 29 18:47:53 2023 -0300| [50f34172e0cca2cabc5836308ec66dbf93f5f2a3] | committer: James Almer

fftools/ffplay: remove usage of internal AVInputFormat.read_seek field

It's an internal field, so it should not be touched.

Reviewed-by: Marton Balint <cus at passwd.hu>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50f34172e0cca2cabc5836308ec66dbf93f5f2a3
---

 fftools/ffplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list