Unified · Split
| @@ -279,7 +279,6 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 278 unmodified lines | ||
| 279 | 279 | if ((discard_padding < avctx->frame_size) != (avpkt->duration > 0)) { |
| 280 | 280 | av_log(avctx, AV_LOG_ERROR, "discard padding overflow\n"); |
| 281 | 281 | av_packet_unref(avpkt); |
| 282 | − av_free(avpkt); | |
| 283 | 282 | return AVERROR(EINVAL); |
| 284 | 283 | } |
| 285 | 284 | if ((!s->delay_sent && avctx->initial_padding > 0) || discard_padding > 0) { |
| @@ -288,7 +287,6 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 2 unmodified lines | ||
| 288 | 287 | 10); |
| 289 | 288 | if(!side_data) { |
| 290 | 289 | av_packet_unref(avpkt); |
| 291 | − av_free(avpkt); | |
| 292 | 290 | return AVERROR(ENOMEM); |
| 293 | 291 | } |
| 294 | 292 | if (!s->delay_sent) { |