asfdec: reindent after previous commit c7bd5ed
authorVladimir Pantelic <vladoman@gmail.com>
Thu, 12 May 2011 08:26:32 +0000 (10:26 +0200)
committerReinhard Tartler <siretart@tauware.de>
Tue, 17 May 2011 20:05:22 +0000 (22:05 +0200)
libavformat/asfdec.c

index e2161fd..f0c746a 100644 (file)
@@ -1272,14 +1272,14 @@ static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int
     if((asf->index_read && st->index_entries)){
         index= av_index_search_timestamp(st, pts, flags);
         if(index >= 0) {
-        /* find the position */
-        pos = st->index_entries[index].pos;
+            /* find the position */
+            pos = st->index_entries[index].pos;
 
-        /* do the seek */
-        av_log(s, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos);
-        avio_seek(s->pb, pos, SEEK_SET);
-        asf_reset_header(s);
-        return 0;
+            /* do the seek */
+            av_log(s, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos);
+            avio_seek(s->pb, pos, SEEK_SET);
+            asf_reset_header(s);
+            return 0;
         }
     }
     /* no index or seeking by index failed */