]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gdv.c
avcodec/vaapi: Remove old and deprecated VAAPI context and header
[ffmpeg] / libavformat / gdv.c
index b698497a6a85df096ccf7c15e359316e808b6673..2ecbb535e7cb75ea4e0fca49a43f6e9a07d776c3 100644 (file)
@@ -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);