]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iv8.c
avformat/hlsenc: Remove deprecated localtime options
[ffmpeg] / libavformat / iv8.c
index 077d905b4bfd5d2f378d4d350e3439a6ea6623bc..e25f24eeb906e09cfa010f0d4b4097e46dd0ed81 100644 (file)
@@ -22,7 +22,7 @@
 #include "internal.h"
 
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     // the single file I have starts with that, I do not know if others do, too
     if(   p->buf[0] == 1
@@ -92,7 +92,6 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
             ret = av_append_packet(s->pb, pkt, size);
             if (ret < 0) {
                 av_log(s, AV_LOG_ERROR, "failed to grow packet\n");
-                av_packet_unref(pkt);
                 return ret;
             }
         }