mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-05 15:03:50 +00:00
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
This commit is contained in:
parent
6dbd39fe70
commit
544286b3d3
4 changed files with 23 additions and 19 deletions
4
ffmpeg.c
4
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue