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:
274793d
)
Prevent au_read_packet() looping endlessly when .au file contains unsupported codec...
author
Peter Ross
<pross@xvid.org>
Mon, 31 May 2010 10:47:36 +0000
(10:47 +0000)
committer
Peter Ross
<pross@xvid.org>
Mon, 31 May 2010 10:47:36 +0000
(10:47 +0000)
Originally committed as revision 23392 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/au.c
patch
|
blob
|
history
diff --git
a/libavformat/au.c
b/libavformat/au.c
index
f8f718d
..
a9c7d03
100644
(file)
--- a/
libavformat/au.c
+++ b/
libavformat/au.c
@@
-139,6
+139,11
@@
static int au_read_header(AVFormatContext *s,
codec = ff_codec_get_id(codec_au_tags, id);
+ if (!av_get_bits_per_sample(codec)) {
+ av_log_ask_for_sample(s, "could not determine bits per sample\n");
+ return AVERROR_INVALIDDATA;
+ }
+
if (size >= 24) {
/* skip unused data */
url_fseek(pb, size - 24, SEEK_CUR);