]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/sol.c
Bump libavformat minor version for the G.729 raw demuxer.
[ffmpeg] / libavformat / sol.c
index 895623392c7b900a0dc68a573aa895895204f98b..cd5b2d75a4ba9b94dcb2f015d1ac6ca53e00303e 100644 (file)
@@ -110,7 +110,7 @@ static int sol_read_header(AVFormatContext *s,
     else id = 0;
 
     /* now we are ready: build format streams */
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return -1;
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
@@ -132,6 +132,8 @@ static int sol_read_packet(AVFormatContext *s,
     if (url_feof(s->pb))
         return AVERROR(EIO);
     ret= av_get_packet(s->pb, pkt, MAX_SIZE);
+    if (ret < 0)
+        return ret;
     pkt->stream_index = 0;
 
     /* note: we need to modify the packet size here to handle the last