mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 00:49:59 +08:00
Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'
* commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457': avpacket: Replace av_free_packet with av_packet_unref Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
@@ -136,7 +136,7 @@ static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data,
|
||||
data->split_pos = 0;
|
||||
if (!data->split_buf) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
memcpy(data->split_buf, buf, data->split_buf_size);
|
||||
|
||||
Reference in New Issue
Block a user