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>
pull/365/head
Andreas Rheinhardt 3 years ago
parent 3f938cd46a
commit 0383ec88a5
  1. 2
      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

Loading…
Cancel
Save