lavf: do not set codec_tag for rawvideo
authorMans Rullgard <mans@mansr.com>
Sun, 17 Jul 2011 15:02:33 +0000 (16:02 +0100)
committerMans Rullgard <mans@mansr.com>
Sun, 25 Sep 2011 13:07:21 +0000 (14:07 +0100)
commitbb416bd68ca46b4a3f1901533064d56a6b8ac95e
tree5bb1c25e11e5a4b2d62ca90f681526ca0da8ba40
parentd1186ff72d75b6067770890758c4feb92abd84f7
lavf: do not set codec_tag for rawvideo

If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense.  This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag.  The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.

This fixes fate-lavf-pixfmt with avfilter disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/utils.c