avformat/mux: Fix error when writing uncoded frames.
authorMatt Oliver <protogonoi@gmail.com>
Wed, 27 Jan 2016 06:16:43 +0000 (17:16 +1100)
committerMatt Oliver <protogonoi@gmail.com>
Wed, 27 Jan 2016 06:16:43 +0000 (17:16 +1100)
commitb66ac803fac2394309797193cc3fdd265a285b03
tree690f767c4d6af3d69d6792faae986e214ed2efeb
parent9079e99d2c462ec7ef2e89d9e77ee6c3553dacce
avformat/mux: Fix error when writing uncoded frames.

commit "avpacket: Deprecate av_dup_packet" broke the use
av_interleaved_write_uncoded_frame as any input uncoded frame has an
invalid packet size that will crash when av_packet_ref tries to allocate
'size' new memory. Since the packet is a temporary created within mux.c
itself it can be used directly without needing a new ref.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
libavformat/mux.c