]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/qcp.c
avidec: Fix infinite loop caused by rounding of timestamps in non interleaved avis.
[ffmpeg] / libavformat / qcp.c
index 4cff63c0cae767c57d81967a7ed6a8c8062d2e53..c88c39b25dc7d1123470563e92d23a80326bddd1 100644 (file)
@@ -84,7 +84,7 @@ static int qcp_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
     AVIOContext *pb = s->pb;
     QCPContext    *c  = s->priv_data;
-    AVStream      *st = av_new_stream(s, 0);
+    AVStream      *st = avformat_new_stream(s, NULL);
     uint8_t       buf[16];
     int           i, nb_rates;