mirror of https://github.com/FFmpeg/FFmpeg.git
The string codec name need not be as long as the value we are comparing it to, so memcmp may make decisions derived from uninitialised data that valgrind then complains about (though the overall result of the function will always be the same). Use strncmp instead, which will stop at the first zero byte and therefore not encounter this issue.pull/273/head
parent
ca62236a89
commit
708e84cda1
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue