[Bug]: AVC 1080p cannot be decoded
Describe the bug decoding an AVC elementary stream gives AMF_RESOLUTION_CHANGED after submitting the first and subsequent slice(s) to the AMF decoder
To Reproduce navigate to the SimpleDecoder sample application from the AMF SDK and feed in the file "_out.h264" via fileNameIn or CLI
Steps to reproduce the behavior:
- download the elementary stream file _out.h264
- compile the SimpleDecoder sample application from the AMF SDK
- watch the return value from the call decoder->SubmitInput(data);
Setup:
- OS: [Windows 10 and Windows 11]
- Driver Version [32.0.13031.3015] and others
- GPU [RX 7600] and others like RX 6xxxx
- AVC Decoder issue across several machines
Debug Log: not applicable. The return value of SubmitInput() is always AMF_RESOLUTION_CHANGED starting with the first slice in stream. The suggested drain/terminate/init doesn't fix the problem.
Expected behavior SubmitInput() returns AMF_OK or AMF_NEED_MORE_INPUT
Screenshots not applicable
Additional context elementary AVC video stream data comes from a Fuji X-T4 camera
Little bit unusual stream. The first SPS ID is 1. The fix is trivial, will appear in the future driver. Thanks.