summaryrefslogtreecommitdiff
path: root/libavformat/rawdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-02 12:03:22 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-13 16:31:16 -0400
commite32dfdaa8dbe77ffd47e8a66261584ad4ed5931c (patch)
tree2a5b86e02019de71be0877b378ba684b16f3e6dd /libavformat/rawdec.c
parentb631fba936d2b353f3c2a76f746bc40a1a193b75 (diff)
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.
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r--libavformat/rawdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index ab0e98c94a..c4c027ab06 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -244,7 +244,7 @@ AVInputFormat ff_shorten_demuxer = {
.long_name = NULL_IF_CONFIG_SMALL("raw Shorten"),
.read_header = ff_raw_audio_read_header,
.read_packet = ff_raw_read_partial_packet,
- .flags= AVFMT_GENERIC_INDEX,
+ .flags = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK,
.extensions = "shn",
.value = CODEC_ID_SHORTEN,
};