aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-01-29 19:45:59 +0000
committerMark Thompson <sw@jkqxz.net>2017-01-30 23:03:52 +0000
commit708e84cda1bdbffb92847f3d6ccf6fbeb26d9948 (patch)
treec01bdf2b10d698863c6443d88da4deb8747d614b /libavcodec/h264_mp4toannexb_bsf.c
parentca62236a89f47bd871eaf69d8d9e837c93c55a6c (diff)
downloadffmpeg-708e84cda1bdbffb92847f3d6ccf6fbeb26d9948.tar.gz
mov: Avoid memcmp of uninitialised data
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.
Diffstat (limited to 'libavcodec/h264_mp4toannexb_bsf.c')
0 files changed, 0 insertions, 0 deletions