History

libavcodec/libmp3lame: Don't free user-provided AVPacket

Andreas Rheinhardt committed 6 years ago

Commit 7e6941e1 parent b8039931 file · +0 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libmp3lame.c+0−2
@@ -279,7 +279,6 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 278 unmodified lines
279279 if ((discard_padding < avctx->frame_size) != (avpkt->duration > 0)) {
280280 av_log(avctx, AV_LOG_ERROR, "discard padding overflow\n");
281281 av_packet_unref(avpkt);
282− av_free(avpkt);
283282 return AVERROR(EINVAL);
284283 }
285284 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
288287 10);
289288 if(!side_data) {
290289 av_packet_unref(avpkt);
291− av_free(avpkt);
292290 return AVERROR(ENOMEM);
293291 }
294292 if (!s->delay_sent) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t