vtdec_hw attempts to play back 422-encoded h264
@heinrich.fink
Submitted by Heinrich Fink Link to original bug (#749226)
Description
When trying to play back 422-encoded h264, vtdec_hw still tries to decode the stream, even though the HW decoder is only able to decode 420. This results in corrupt images since the stream is interpreted as 420.
There are a few things that can be done:
- Make sure to also pass on the pixel format in gst_vtdec_set_format
- Use CMVideoFormatDescriptionCreateFromH264ParameterSets to get the correct description (works when stream-format=avc, should be available in codec_data in caps). I guess this should be the preferred way.
A sample 422-encoded file is attached.