summaryrefslogtreecommitdiff
path: root/libavformat/gdv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/gdv.c')
-rw-r--r--libavformat/gdv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/gdv.c b/libavformat/gdv.c
index b698497a6a..2ecbb535e7 100644
--- a/libavformat/gdv.c
+++ b/libavformat/gdv.c
@@ -182,7 +182,6 @@ static int gdv_read_packet(AVFormatContext *ctx, AVPacket *pkt)
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE);
if (!pal) {
- av_packet_unref(pkt);
return AVERROR(ENOMEM);
}
memcpy(pal, gdv->pal, AVPALETTE_SIZE);