[FFmpeg-devel] [PATCH] vaapi_encode_mjpeg: WA: fix bad component id bug

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Jun 7 23:41:25 EEST 2019


On 07.06.2019, at 22:28, "U. Artie Eoff" <ullysses.a.eoff at intel.com> wrote:

> When compile time optimizations are enabled and
> compiling with GNU GCC 9.x, the pointer assignment
> to the inline brace-enclosed list initialized
> array does not work and "component" ends up pointing
> to an empty array.  This is probably a bug in GCC
> 9.x.

This to me sounds like a serious enough bug that I'm tempted to suggest blacklisting gcc 9 instead...
However the original code doesn't seem really proper to me.
Have you tried replacing (uint8_t[3]) by (const uint8_t[3])?


More information about the ffmpeg-devel mailing list