]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/fitsdec.c
avcodec/exr: Check line size for overflow
[ffmpeg] / libavformat / fitsdec.c
index 30e34fc4d5e0c73f7891364bb97e8be7d7460af0..e52ddc7e790655b5e82989fee5fe8277718e0652 100644 (file)
@@ -183,7 +183,6 @@ static int fits_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = av_bprint_finalize(&avbuf, &buf);
     if (ret < 0) {
-        av_packet_unref(pkt);
         return ret;
     }
 
@@ -192,7 +191,6 @@ static int fits_read_packet(AVFormatContext *s, AVPacket *pkt)
     av_freep(&buf);
     ret = avio_read(s->pb, pkt->data + pkt->size, size);
     if (ret < 0) {
-        av_packet_unref(pkt);
         return ret;
     }