Re: [FFmpeg-devel] [PATCH] movenc: Fix VPCC bitdepth for hardware pixel formats

2019-02-04 Thread Niki Bowe
My apologies. I realized I applied my patch incorrectly before sending this. I will send a corrected version tomorrow On Thu, Jan 31, 2019 at 4:28 PM Nikolas Bowe wrote: > If a hardware encoder is used, the pixel format may be a hardware pixel > format. > This leads to invalid VPCC atom being

[FFmpeg-devel] [PATCH] movenc: Fix VPCC bitdepth for hardware pixel formats

2019-01-31 Thread Nikolas Bowe
If a hardware encoder is used, the pixel format may be a hardware pixel format. This leads to invalid VPCC atom being written, due to depth of hardware pixel formats being 0. To work around this, fallback on bits_per_raw_sample. Signed-off-by: Nikolas Bowe --- libavcodec/vaapi_encode.c | 2 +-