]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/g723_1.c
avfilter/vf_scale: store the offset in a local variable before adding it
[ffmpeg] / libavformat / g723_1.c
index 27c8c3951be00baa0ce1daa4dcab526bb4cf3f76..f38064b5b2d712fb8058e2a271fefce64cf7b9d8 100644 (file)
@@ -69,14 +69,13 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     ret = avio_read(s->pb, pkt->data + 1, size - 1);
     if (ret < size - 1) {
-        av_packet_unref(pkt);
         return ret < 0 ? ret : AVERROR_EOF;
     }
 
     return pkt->size;
 }
 
-AVInputFormat ff_g723_1_demuxer = {
+const AVInputFormat ff_g723_1_demuxer = {
     .name        = "g723_1",
     .long_name   = NULL_IF_CONFIG_SMALL("G.723.1"),
     .read_header = g723_1_init,