Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to_lavc_vid_conv: set AVFrame CS and range
Some encoders use `colorspace` and `color_range` from AVFrame, eg. _hevc_videotoolbox_: uv -t testcard -c libavcodec:encoder=hevc_videotoolbox (defaults to bgra, because other foramts don't keep 4:2:2 subsampling, supported at the time: videotoolbox_vld nv12 yuv420p bgra p010le). Fixed error was producing this message: ```` [lavc hevc_videotoolbox @ 0x12fc04190] Could not get pixel format for color format 'bgra' range 'unknown'. [lavc hevc_videotoolbox @ 0x12fc04190] Error: Cannot convert format 28 color_range 0: -22 ```
- Loading branch information