diff options
author | Juanjo <pulento@users.sourceforge.net> | 2001-08-31 06:21:27 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2001-08-31 06:21:27 +0000 |
commit | 544286b3d39365b30298ae07e66a755200b0895c (patch) | |
tree | 94d51286672db7271843fbfab360255e5bfb9108 /ffmpeg.c | |
parent | 6dbd39fe70f094ab178bc788369379e2229dd630 (diff) | |
download | ffmpeg-544286b3d39365b30298ae07e66a755200b0895c.tar.gz |
Moved some H.263+ variables to MpegEncContext to be thread-safe.
Increase video_buffer on ffmpeg to avoid buffer overrun on big pictures.
Originally committed as revision 114 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -196,7 +196,7 @@ int av_grab(AVFormatContext *s) UINT8 audio_buf[AUDIO_FIFO_SIZE/2]; UINT8 audio_buf1[AUDIO_FIFO_SIZE/2]; UINT8 audio_out[AUDIO_FIFO_SIZE/2]; - UINT8 video_buffer[128*1024]; + UINT8 video_buffer[1024*1024]; char buf[256]; short *samples; URLContext *audio_handle = NULL, *video_handle = NULL; @@ -764,7 +764,7 @@ static void do_video_out(AVFormatContext *s, int n1, n2, nb, i, ret, frame_number; AVPicture *picture, *picture2, *pict; AVPicture picture_tmp1, picture_tmp2; - UINT8 video_buffer[128*1024]; + UINT8 video_buffer[1024*1024]; UINT8 *buf = NULL, *buf1 = NULL; AVCodecContext *enc, *dec; |