]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/samidec.c
avformat/a64: Avoid segfault in a64_write_header() when stream codec is not open
[ffmpeg] / libavformat / samidec.c
index 2eaee6f24b1de25523d6b466a95b858c98bbc043..1a12ecad462027e0c1b3d8735dbb3226c4829ab2 100644 (file)
@@ -62,7 +62,7 @@ static int sami_read_header(AVFormatContext *s)
     av_bprint_init(&buf,     0, AV_BPRINT_SIZE_UNLIMITED);
     av_bprint_init(&hdr_buf, 0, AV_BPRINT_SIZE_UNLIMITED);
 
-    while (!url_feof(s->pb)) {
+    while (!avio_feof(s->pb)) {
         AVPacket *sub;
         const int64_t pos = avio_tell(s->pb) - (c != 0);
         int is_sync, n = ff_smil_extract_next_chunk(s->pb, &buf, &c);