aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-11-19 12:38:44 -0300
committerJames Almer <jamrial@gmail.com>2016-11-19 20:24:23 -0300
commit492bbe58902ddf7f9085f13345fd01098c44c6de (patch)
tree77a934bbb1da83a4a80dc414ac9445d9f62b33e8 /libavcodec/snow.c
parent5771a0c8237d6fb0fb65877126ec0f7842fd2a1e (diff)
downloadffmpeg-492bbe58902ddf7f9085f13345fd01098c44c6de.tar.gz
avcodec/avpacket: fix leak on realloc in av_packet_add_side_data()
If realloc fails, the pointer is overwritten and the previously allocated buffer is leaked, which goes against the expected behavior of keeping the packet unchanged in case of error. Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 574929d8b6de32ae712fcca7ab09f01a3e4616be)
Diffstat (limited to 'libavcodec/snow.c')
0 files changed, 0 insertions, 0 deletions