mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-30 08:50:56 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user