avformat: Rework add_to_pktbuf
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 23 Oct 2015 09:11:32 +0000 (11:11 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 26 Oct 2015 17:00:55 +0000 (18:00 +0100)
commitd584533cf38141172e20bae5436629ee17c8ce50
tree3123d349bd8dcbf11c0b283324fb5c8c4e8a0956
parentce70f28a1732c74a9cd7fec2d56178750bd6e457
avformat: Rework add_to_pktbuf

Make it return an error and check its return value when it is used.
Simplify the usage by calling `av_packet_ref` internally when needed.
libavformat/utils.c