HEVC corruption when using -c copy to .hevc file
|Reproduced by developer:
|Analyzed by developer:
Summary of the bug:
Remuxing hevc video stream file from mkv to .hevc file using stream copy results in a corrupted output. This corrupted output is visible at timestamp 00:00:21 and at 00:01:30. I have also tried using the hevc_mp4toannexb bitstream filter with the same result.
How to reproduce:
Download test clip: https://drive.google.com/file/d/1kTQ1AnJAnzsAtMB0dIn4N96rxbS3JIcc/view?usp=drive_link
% ffmpeg -i mini_test_clip.mkv -map 0:v:0 -c:v copy output.hevc
The output.hevc file can also be tested with a null output using this command:
ffmpeg -i output.hevc -f null -
This result in hevc decoding errors at the above mentioned timestamps. The test clip itself plays fine without corruption.
Here is a pastebin of the errors with decoding the output.hevc file: https://pastebin.com/QXHzX1wb