mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
ffplay, avcodec, avformat: Don't initialize before av_packet_ref()
It already initializes the packet. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -536,7 +536,6 @@ static int fifo_write_packet(AVFormatContext *avf, AVPacket *pkt)
|
||||
int ret;
|
||||
|
||||
if (pkt) {
|
||||
av_init_packet(&msg.pkt);
|
||||
ret = av_packet_ref(&msg.pkt,pkt);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user