Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
parent
7f5af80ba4
commit
c2f861ca42
59 changed files with 99 additions and 99 deletions
|
@ -1403,7 +1403,7 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
|||
if (pkt->flags & AV_PKT_FLAG_KEY)
|
||||
st->skip_to_keyframe = 0;
|
||||
if (st->skip_to_keyframe) {
|
||||
av_free_packet(&cur_pkt);
|
||||
av_packet_unref(&cur_pkt);
|
||||
if (got_packet) {
|
||||
*pkt = cur_pkt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue