Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-24 16:55:14 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-24 16:55:14 +0400
commit0ebc3728561cc7a875c33bf1a5590d31eb53d9ac (patch)
tree07c1f0ef6d662e021a23f217b000b01e980b6328 /libavcodec
parentab0b1fdd176c76d0d95adc7ceb85a1d8e585d667 (diff)
parent5f24fe82e5fcf227abb5ebf62aa9bc246fda8c0d (diff)
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index dca99863e4..82861c6895 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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);