mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mpegvideo_enc: make edge for interlaced mpeg2 encoding smaller
Fixes segfault the size can probably be reduced further for the mpeg2 case Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
339d8fb353
commit
5bda0467d2
|
@ -1146,7 +1146,8 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
|
||||||
int vpad = 16;
|
int vpad = 16;
|
||||||
|
|
||||||
if ( s->codec_id == AV_CODEC_ID_MPEG2VIDEO
|
if ( s->codec_id == AV_CODEC_ID_MPEG2VIDEO
|
||||||
&& !s->progressive_sequence)
|
&& !s->progressive_sequence
|
||||||
|
&& FFALIGN(s->height, 32) - s->height > 16)
|
||||||
vpad = 32;
|
vpad = 32;
|
||||||
|
|
||||||
if (!s->avctx->rc_buffer_size)
|
if (!s->avctx->rc_buffer_size)
|
||||||
|
|
Loading…
Reference in New Issue