avpacket: reset dst side_data fields in av_packet_copy_props
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Wed, 14 Feb 2018 02:43:24 +0000 (11:43 +0900)
committerJames Almer <jamrial@gmail.com>
Wed, 14 Feb 2018 23:36:29 +0000 (20:36 -0300)
commit3b4026e15110547892d5d770b6b43c9e34df458f
tree77be1b0e6a3c957d7fcc89eed92b070c41757ccb
parent7c82e0f61e365296b094684fd92aea0fe05ceb93
avpacket: reset dst side_data fields in av_packet_copy_props

This effectively copies the side data elements from src instead of
potentially merging them with those already existing in dst.
This by extension also removes the only dependency on existing values
in the dst packet.

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/avpacket.c