[FFmpeg-cvslog] avformat/av1dec: Disallow seeking by bytes

Andreas Rheinhardt git at videolan.org
Mon Aug 23 08:29:11 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Aug 22 15:10:35 2021 +0200| [0383ec88a56dcad7b2e87ff243f26d3287ba3fdb] | committer: Andreas Rheinhardt

avformat/av1dec: Disallow seeking by bytes

The low overhead OBU format provides no means to resync after performing
a byte-based seek; in other words: Byte based seeking is just not
supported.

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavformat/av1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index 88a3c325e4..37f21483b9 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -428,7 +428,7 @@ const AVInputFormat ff_obu_demuxer = {
     .read_packet    = obu_read_packet,
     .read_close     = av1_read_close,
     .extensions     = "obu",
-    .flags          = AVFMT_GENERIC_INDEX,
+    .flags          = AVFMT_GENERIC_INDEX | AVFMT_NO_BYTE_SEEK,
     .priv_class     = &av1_demuxer_class,
 };
 #endif



More information about the ffmpeg-cvslog mailing list