OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b631fba
)
shn: do not allow seeking in the raw shn demuxer.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 2 Oct 2011 16:03:22 +0000
(12:03 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 13 Oct 2011 20:31:16 +0000
(16:31 -0400)
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.
libavformat/rawdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rawdec.c
b/libavformat/rawdec.c
index
ab0e98c
..
c4c027a
100644
(file)
--- 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,
};