mpegvideo_enc: initialize the encoding context
This prevents several uninitialized variable uses that take place towards the end of encoding. CC: libav-stable@libav.org Bug-Id: CID 700760
This commit is contained in:
parent
1a07df3112
commit
302ca6b20e
@ -2538,7 +2538,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
|
||||
int mb_x, mb_y, pdif = 0;
|
||||
int chr_h= 16>>s->chroma_y_shift;
|
||||
int i, j;
|
||||
MpegEncContext best_s, backup_s;
|
||||
MpegEncContext best_s = { 0 }, backup_s;
|
||||
uint8_t bit_buf[2][MAX_MB_BYTES];
|
||||
uint8_t bit_buf2[2][MAX_MB_BYTES];
|
||||
uint8_t bit_buf_tex[2][MAX_MB_BYTES];
|
||||
|
Loading…
x
Reference in New Issue
Block a user