summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2001-08-31 06:21:27 +0000
committerJuanjo <pulento@users.sourceforge.net>2001-08-31 06:21:27 +0000
commit544286b3d39365b30298ae07e66a755200b0895c (patch)
tree94d51286672db7271843fbfab360255e5bfb9108 /ffmpeg.c
parent6dbd39fe70f094ab178bc788369379e2229dd630 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b9812b4b92..b916e0cf9e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;