changeset 19214:668f0209df77

Cosmetics for last commit
author reimar
date Fri, 28 Jul 2006 15:05:35 +0000
parents 606d2f7cd307
children 64264df4c4e1
files libmpdemux/demux_avs.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c	Fri Jul 28 15:04:10 2006 +0000
+++ b/libmpdemux/demux_avs.c	Fri Jul 28 15:05:35 2006 +0000
@@ -176,14 +176,14 @@
 
     if (avs_has_video(AVS->video_info))
     {
-    if (AVS->video_info->num_frames < AVS->frameno) return 0; // EOF
-    
-    curr_frame = AVS->avs_get_frame(AVS->clip, AVS->frameno);
-    if (!curr_frame)
-    {
-        mp_msg(MSGT_DEMUX, MSGL_V, "AVS: error getting frame -- EOF??\n");
-        return 0;
-    }
+        if (AVS->video_info->num_frames < AVS->frameno) return 0; // EOF
+
+        curr_frame = AVS->avs_get_frame(AVS->clip, AVS->frameno);
+        if (!curr_frame)
+        {
+            mp_msg(MSGT_DEMUX, MSGL_V, "AVS: error getting frame -- EOF??\n");
+            return 0;
+        }
 
         dp = new_demux_packet(curr_frame->vfb->data_size);
         sh_video->num_frames_decoded++;
@@ -194,8 +194,8 @@
         memcpy(dp->buffer, curr_frame->vfb->data + curr_frame->offset, curr_frame->vfb->data_size);
         ds_add_packet(demuxer->video, dp);
 
-    AVS->frameno++;
-    AVS->avs_release_video_frame(curr_frame);
+        AVS->frameno++;
+        AVS->avs_release_video_frame(curr_frame);
     }
     
 #ifdef ENABLE_AUDIO