mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
avpacket: Replace av_free_packet with av_packet_unref
`av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
This commit is contained in:
@@ -508,7 +508,7 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
|
||||
if (res < 0) {
|
||||
res = AVERROR(errno);
|
||||
av_log(ctx, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF)\n");
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return res;
|
||||
}
|
||||
avpriv_atomic_int_add_and_fetch(&s->buffers_queued, 1);
|
||||
|
||||
Reference in New Issue
Block a user