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:
c367d06
)
fix decoding of big audio packets (48k 16bit 2 channels), needed size is related...
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Wed, 28 Mar 2007 11:53:01 +0000
(11:53 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Wed, 28 Mar 2007 11:53:01 +0000
(11:53 +0000)
Originally committed as revision 8537 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
2ee0011
..
3f12c1f
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-1049,7
+1049,7
@@
static int output_packet(AVInputStream *ist, int ist_index,
switch(ist->st->codec->codec_type) {
case CODEC_TYPE_AUDIO:{
if(pkt)
- samples= av_fast_realloc(samples, &samples_size, FFMAX(pkt->size, AVCODEC_MAX_AUDIO_FRAME_SIZE));
+ samples= av_fast_realloc(samples, &samples_size, FFMAX(pkt->size
*sizeof(*samples)
, AVCODEC_MAX_AUDIO_FRAME_SIZE));
data_size= samples_size;
/* XXX: could avoid copy if PCM 16 bits with same
endianness as CPU */