Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146
stars
106
forks
source link
Remove bad memset on SPS, PPS and SliceHeader #846
The SPS, PPS and SliceHeader structs contain non-POD types and thus
memset should be used with care to clear them properly. Since
the SPS, PPS and SliceHeader constructors already do it the right
way, remove the unnecessary and erroneous memset for these
objects in the unit tests. GCC 8.0.1 generates error with
-Werror=class-memaccess otherwise.
The SPS, PPS and SliceHeader structs contain non-POD types and thus memset should be used with care to clear them properly. Since the SPS, PPS and SliceHeader constructors already do it the right way, remove the unnecessary and erroneous memset for these objects in the unit tests. GCC 8.0.1 generates error with -Werror=class-memaccess otherwise.
Fixes #845
Signed-off-by: U. Artie Eoff ullysses.a.eoff@intel.com