aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/decoding_encoding.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-01-22 20:58:07 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-01-28 01:57:39 +0100
commitea2d44503f0822367cb467adf6d3ed43cf4ce418 (patch)
tree9ca3f81b61ac0cbb9508332aa7c5daf8b5477f59 /doc/examples/decoding_encoding.c
parent59f7d583a3e467843c57278ec320efddf28097d1 (diff)
downloadffmpeg-ea2d44503f0822367cb467adf6d3ed43cf4ce418.tar.gz
rtpenc: fix overflow checking in avc_mp4_find_startcode()
The check `start + res < start' is broken since pointer overflow is undefined behavior in C. Many compilers such as gcc/clang optimize away this check. Use `res > end - start' instead. Also change `res' to unsigned int to avoid signed left-shift overflow. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2f014567cfd63e58156f60666f1a61ba147276ab) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/decoding_encoding.c')
0 files changed, 0 insertions, 0 deletions