Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avcodec/videotoolbox: fix decoding of some hevc videos
See https://s3.amazonaws.com/tmm1/videotoolbox/germany-hevc-zdf.ts Although videotoolbox_buffer_create() sets frame->hw_frames_ctx, by the time videotoolbox_postproc_frame() is called, some frames randomly have frame->hw_frames_ctx == NULL. I don't really understand what's going on, and why this only affects some frames and only in some hevc videos. This patch attempts to detect the missing hw_frames_ctx and reset it in the post_process callback. This is obviously a huge hack, but it does fix playback of the affected samples.
- Loading branch information