mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0
authorMartin Storsjö <martin@martin.st>
Tue, 24 Sep 2013 09:02:39 +0000 (12:02 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 4 Oct 2013 21:31:20 +0000 (00:31 +0300)
commit42c7ed49a9e4cd5fdeb1306e8e09a96a4c7dbbbb
tree6fd546f87a24d329e8d2c69cd67a11d077604c4c
parent9597807ab1979a71483d6e0c5d18054cf9c11bba
mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0

This fixes breakage in a few fate tests on certain setups
(that for some reason didn't break on OS X) after the previous
commit (8812a8057). Currently, some video streams are initialized
in ff_MPV_common_init with width/height set at 0 and only changed
to a proper video size with ff_MPV_common_frame_size_change later.

The breakage was diagnosed by Anton Khirnov.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 5f24fe82e5fcf227abb5ebf62aa9bc246fda8c0d)

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/mpegvideo.c