mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
Merge commit '5f24fe82e5fcf227abb5ebf62aa9bc246fda8c0d'
* commit '5f24fe82e5fcf227abb5ebf62aa9bc246fda8c0d': mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0 Conflicts: libavcodec/mpegvideo.c The chroma_*_shift and codec_tag code was not under a size!=0 check in ffmpeg Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
0ebc372856
@ -1029,7 +1029,9 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
|
||||
s->flags2 = s->avctx->flags2;
|
||||
|
||||
/* set chroma shifts */
|
||||
avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &s->chroma_x_shift, &s->chroma_y_shift);
|
||||
avcodec_get_chroma_sub_sample(s->avctx->pix_fmt,
|
||||
&s->chroma_x_shift,
|
||||
&s->chroma_y_shift);
|
||||
|
||||
/* convert fourcc to upper case */
|
||||
s->codec_tag = avpriv_toupper4(s->avctx->codec_tag);
|
||||
|
Loading…
Reference in New Issue
Block a user