avcodec/avpacket: allow only one element per type in packet side data
authorJames Almer <jamrial@gmail.com>
Fri, 12 May 2017 16:45:44 +0000 (13:45 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 14 May 2017 01:15:40 +0000 (22:15 -0300)
commit8c33e2e11bc9e8a46f07ad86500d5271484f6000
tree25702a479622f67573d3199b6d221c244c23553d
parent8fbd34750834a6c91ec4079b3ee9b0877f3a21b0
avcodec/avpacket: allow only one element per type in packet side data

It was never meant to do otherwise, as av_packet_get_side_data() returns the first
entry it finds of a given type.

Based on code from libavformat's av_stream_add_side_data().

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 28f60eeabbdc3d0550f45da813ba91a0354524c4)
libavcodec/avpacket.c