[FFmpeg-soc] [soc]: r4378 - seek_api/mpeg.c

spyfeng subversion at mplayerhq.hu
Wed Jun 3 20:12:07 CEST 2009


Author: spyfeng
Date: Wed Jun  3 20:12:06 2009
New Revision: 4378

Log:
indent the code

Modified:
   seek_api/mpeg.c

Modified: seek_api/mpeg.c
==============================================================================
--- seek_api/mpeg.c	Wed Jun  3 20:09:37 2009	(r4377)
+++ seek_api/mpeg.c	Wed Jun  3 20:12:06 2009	(r4378)
@@ -653,21 +653,21 @@ static int mpegps_read_seek(struct AVFor
     av_log(s, AV_LOG_DEBUG, "the seek pos = %"PRId64"\n", pos);
 
     if (ts >= ret_ts) {
-    // find the keyframe
-    for (;;) {
-        if (av_read_frame(s, pkt) < 0){
-            av_log(s, AV_LOG_ERROR, "can not find the key frame\n");
-            return -1;
-        }
-        av_free_packet(pkt);
-        if(pkt->flags&PKT_FLAG_KEY){
-            pos = pkt->pos;
-            pts= pkt->pts;
-            av_log(s, AV_LOG_DEBUG, "keyframe pos = %"PRId64" pts = %"PRId64"\n", pos, pts);
-            break;
+        // find the keyframe
+        for (;;) {
+            if (av_read_frame(s, pkt) < 0){
+                av_log(s, AV_LOG_ERROR, "can not find the key frame\n");
+                return -1;
+            }
+            av_free_packet(pkt);
+            if(pkt->flags&PKT_FLAG_KEY){
+                pos = pkt->pos;
+                pts= pkt->pts;
+                av_log(s, AV_LOG_DEBUG, "keyframe pos = %"PRId64" pts = %"PRId64"\n", pos, pts);
+                break;
+            }
         }
     }
-    }
     av_update_cur_dts(s, st, ret_ts);
     return 0;
 }


More information about the FFmpeg-soc mailing list