]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tiertexseq.c
lavf: fix null pointer dereference in rdt
[ffmpeg] / libavformat / tiertexseq.c
index d8bdf2a97c04e8d7f9e283af6dc8bfcc51a2a1b7..dfed70ceae3ce5acbb00930f5a3289691bf3d1d3 100644 (file)
@@ -206,7 +206,7 @@ static int seq_read_header(AVFormatContext *s, AVFormatParameters *ap)
     seq->audio_buffer_full = 0;
 
     /* initialize the video decoder stream */
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
 
@@ -219,7 +219,7 @@ static int seq_read_header(AVFormatContext *s, AVFormatParameters *ap)
     st->codec->height = SEQ_FRAME_H;
 
     /* initialize the audio decoder stream */
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);