Commit 2147304e authored by kabi's avatar kabi

* 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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1169 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 47f8f0ac
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment