lavc/encode: remove redundant av_init_packet after av_packet_unref.
authorJun Zhao <mypopydev@gmail.com>
Thu, 16 Aug 2018 06:33:23 +0000 (14:33 +0800)
committerJun Zhao <jun.zhao@intel.com>
Thu, 23 Aug 2018 11:17:16 +0000 (19:17 +0800)
commitc9ed7f002492c7901f8638d8765bf4532dc2900a
treee0f36286cc99551eda4f6becc773f54b56524618
parent70d2bab80b38adf6d9a1430992c33dd2e3efa93f
lavc/encode: remove redundant av_init_packet after av_packet_unref.

remove redundant av_init_packet after av_packet_unref.
av_packet_unref have call av_init_packet and reset the packet size.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavcodec/encode.c