mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
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:
parent
067d4f0472
commit
08478473b7
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue