libeplayer3-arm: reduce compiler warnings

Origin commit data
------------------
Branch: master
Commit: afda7fff3e
Author: max_10 <max_10@gmx.de>
Date: 2018-03-06 (Tue, 06 Mar 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2018-03-06 19:08:31 +01:00
parent d7d500b2a5
commit 72f70359b2

View File

@@ -24,7 +24,7 @@ static void set_packet(AVPacket **pkt_dest, AVPacket *pkt_src)
av_free(*pkt_dest);
}
*pkt_dest = av_malloc(sizeof(AVPacket));
av_copy_packet(*pkt_dest, pkt_src);
av_packet_ref(*pkt_dest, pkt_src);
}
static int filter_packet(AVBitStreamFilterContext *bsf_ctx, AVCodecContext *enc_ctx, AVPacket *pkt)
@@ -37,7 +37,7 @@ static int filter_packet(AVBitStreamFilterContext *bsf_ctx, AVCodecContext *enc_
pkt->flags & AV_PKT_FLAG_KEY);
if (ret == 0 && new_pkt.data != pkt->data)
{
if ((ret = av_copy_packet(&new_pkt, pkt)) < 0)
if ((ret = av_packet_ref(&new_pkt, pkt)) < 0)
return -1;
ret = 1;
}