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>
This commit is contained in:
Andreas Rheinhardt 2021-08-22 15:10:35 +02:00
parent 3f938cd46a
commit 0383ec88a5
1 changed files with 1 additions and 1 deletions

View File

@ -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