Opened 2 years ago
Trying to use the hw_decode.exe with a hevc or avc mp4 file results in a corrupted output
|Reported by:||Jun Tian||Owned by:|
|Cc:||Jun Li, Zhao||Blocked By:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
How to reproduce:
Built on Windows with git-master.
The sample code I tried is /doc/examples/hw_decode.c
hw_decode.exe dxva2 input.mp4 out.yuv
If input.mp4 is either hevc or avc, out.yuv is corrupted
Below command line produces correct output.
ffmpeg -hwaccel dxva2 -threads 1 -i input.mp4 out.yuv
So I guess the libraries are good, but hw_decode sample has something wrong.
ffmpeg is hard to reference for a simple decode module.
Could you please fix hw_decode sample code?