aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 12:38:50 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-11-05 12:38:50 +0000
commitff29712a3d4aaf7cdfe8efe8904eaa564e4f34ae (patch)
treefaabf0e2dacc95af7718274e8ffe55cdf251c84e
parente2e6cfd0216080c44203d8c9baa7a0bbdc45028d (diff)
downloadffmpeg-ff29712a3d4aaf7cdfe8efe8904eaa564e4f34ae.tar.gz
* use larger buffer - the size should be calculcated from the bitstream
data rate and outgoing samples (i.e. WMA could generate a lot of samples from 4096KB chunks) FIXME Originally committed as revision 1169 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b9dc932e68..00809c6078 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -301,7 +301,7 @@ static void do_audio_out(AVFormatContext *s,
{
UINT8 *buftmp;
UINT8 audio_buf[2*MAX_AUDIO_PACKET_SIZE]; /* XXX: allocate it */
- UINT8 audio_out[MAX_AUDIO_PACKET_SIZE]; /* XXX: allocate it */
+ UINT8 audio_out[4*MAX_AUDIO_PACKET_SIZE]; /* XXX: allocate it - yep really WMA */
int size_out, frame_bytes, ret;
AVCodecContext *enc;
@@ -346,7 +346,7 @@ static void do_audio_out(AVFormatContext *s,
break;
}
ret = avcodec_encode_audio(enc, audio_out, size_out,
- (short *)buftmp);
+ (short *)buftmp);
av_write_frame(s, ost->index, audio_out, ret);
}
}