summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-22 15:10:35 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-23 07:06:22 +0200
commit0383ec88a56dcad7b2e87ff243f26d3287ba3fdb (patch)
tree1cc38d12e5d69d9c837f69659cd9c2d7bab8ede0 /libavformat
parent3f938cd46a8ae1e66569ec322e8ad56c055726a6 (diff)
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@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/av1dec.c2
1 files changed, 1 insertions, 1 deletions
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