winegstreamer/video_decoder: Make output_plane_align specific to h264.

If we set output align to wmv decoder, it will fail at copy_video_buffer().
The output size will larger than the sample we provided due to alignment.
This commit is contained in:
Ziqing Hui 2024-05-08 11:15:23 +08:00 committed by Alexandre Julliard
parent 067d4f0472
commit 08478473b7

View file

@ -1500,7 +1500,6 @@ static HRESULT video_decoder_create_with_types(const GUID *const *input_types, U
if (FAILED(hr = MFCreateSampleCopierMFT(&decoder->copier)))
goto failed;
decoder->wg_transform_attrs.output_plane_align = 15;
decoder->wg_transform_attrs.input_queue_length = 15;
*out = decoder;
@ -1569,6 +1568,7 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
| MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE;
decoder->output_info.cbSize = 1920 * 1088 * 2;
decoder->wg_transform_attrs.output_plane_align = 15;
decoder->wg_transform_attrs.allow_size_change = TRUE;
TRACE("Created h264 transform %p.\n", &decoder->IMFTransform_iface);