]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_mpa_robust.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavformat / rtpdec_mpa_robust.c
index 022cfec31351ed0c4bbf837d2330082643e1d42b..a65e139cfcd76a74a0e5df3b1e1099abcfe5f605 100644 (file)
@@ -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);