avformat/utils: check for overflow before reallocating side data
authorJames Almer <jamrial@gmail.com>
Sat, 19 Nov 2016 17:33:10 +0000 (14:33 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 19 Nov 2016 23:11:50 +0000 (20:11 -0300)
commit0ffea3565700c9b3093ead285f729bb319a2163e
tree61e05654100618e9e196e18e480291de03522be0
parent2343f23e4d7e0d0f6adfd83d7d769a7a115dbd17
avformat/utils: check for overflow before reallocating side data

This makes av_stream_add_side_data() consistent with av_packet_add_side_data().

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/utils.c