OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae0d1e
)
return AVERROR_INVALIDDATA when the bitstream could not be decoded
author
Sascha Sommer
<saschasommer@freenet.de>
Sat, 3 Oct 2009 09:44:05 +0000
(09:44 +0000)
committer
Sascha Sommer
<saschasommer@freenet.de>
Sat, 3 Oct 2009 09:44:05 +0000
(09:44 +0000)
Originally committed as revision 20154 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmaprodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmaprodec.c
b/libavcodec/wmaprodec.c
index
a489047
..
36fb08a
100644
(file)
--- a/
libavcodec/wmaprodec.c
+++ b/
libavcodec/wmaprodec.c
@@
-1528,7
+1528,7
@@
static int decode_packet(AVCodecContext *avctx,
*data_size = (int8_t *)s->samples - (int8_t *)data;
s->packet_offset = get_bits_count(gb) & 7;
- return get_bits_count(gb) >> 3;
+ return
(s->packet_loss) ? AVERROR_INVALIDDATA :
get_bits_count(gb) >> 3;
}
/**