Commit d05c1727 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

mft: Use the right index for IMFSample_GetBufferByIndex

The input stream id is completely unrelated to the input
sample buffer index - the sample allocated in AllocateInputSample
contains one single media buffer, at index 0.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0b9f0d21
...@@ -557,7 +557,7 @@ static int ProcessInputStream(decoder_t *p_dec, DWORD stream_id, block_t *p_bloc ...@@ -557,7 +557,7 @@ static int ProcessInputStream(decoder_t *p_dec, DWORD stream_id, block_t *p_bloc
goto error; goto error;
IMFMediaBuffer *input_media_buffer = NULL; IMFMediaBuffer *input_media_buffer = NULL;
hr = IMFSample_GetBufferByIndex(input_sample, stream_id, &input_media_buffer); hr = IMFSample_GetBufferByIndex(input_sample, 0, &input_media_buffer);
if (FAILED(hr)) if (FAILED(hr))
goto error; goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment