Browse code

shn: do not allow seeking in the raw shn demuxer.

The demuxer does not read the seektable, a parser is not possible without a
full decode, and no shorten decoder can handle random seeking because it needs
side info from the seektable.

Justin Ruggles authored on 2011/10/03 01:03:22
Showing 1 changed files
... ...
@@ -244,7 +244,7 @@ AVInputFormat ff_shorten_demuxer = {
244 244
     .long_name      = NULL_IF_CONFIG_SMALL("raw Shorten"),
245 245
     .read_header    = ff_raw_audio_read_header,
246 246
     .read_packet    = ff_raw_read_partial_packet,
247
-    .flags= AVFMT_GENERIC_INDEX,
247
+    .flags          = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK,
248 248
     .extensions = "shn",
249 249
     .value = CODEC_ID_SHORTEN,
250 250
 };