]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/sauce.c
udp: fix indention
[ffmpeg] / libavformat / sauce.c
index ba737df1ce5519267cc0d0f502c5fab69574f45f..b2aa1b7b77e2a8b24e681b5973d32c34edb00a91 100644 (file)
@@ -32,8 +32,8 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int g
 {
     AVIOContext *pb = avctx->pb;
     char buf[36];
-    int datatype, filetype, t1, t2, nb_comments, flags;
-    uint64_t start_pos = url_fsize(pb) - 128;
+    int datatype, filetype, t1, t2, nb_comments;
+    uint64_t start_pos = avio_size(pb) - 128;
 
     avio_seek(pb, start_pos, SEEK_SET);
     if (avio_read(pb, buf, 7) != 7)
@@ -51,14 +51,14 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int g
     GET_SAUCE_META("artist",    20)
     GET_SAUCE_META("publisher", 20)
     GET_SAUCE_META("date",      8)
-    avio_seek(pb, 4, SEEK_CUR);
+    avio_skip(pb, 4);
     datatype    = avio_r8(pb);
     filetype    = avio_r8(pb);
     t1          = avio_rl16(pb);
     t2          = avio_rl16(pb);
     nb_comments = avio_r8(pb);
-    flags       = avio_r8(pb);
-    avio_seek(pb, 4, SEEK_CUR);
+    avio_skip(pb, 1); /* flags */
+    avio_skip(pb, 4);
     GET_SAUCE_META("encoder",   22);
 
     if (got_width && datatype && filetype) {