OSDN Git Service

encx264: Fix timecodes when using x264 with avi.
authorsaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 5 Mar 2008 00:29:09 +0000 (00:29 +0000)
committersaintdev <saintdev@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 5 Mar 2008 00:29:09 +0000 (00:29 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1326 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index d61f280..8f97674 100644 (file)
@@ -528,13 +528,12 @@ int encx264Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
                        b-frames with the CTTS atom. */
                     buf->renderOffset = pic_out.i_pts - dts_start + pv->init_delay;
 
-                    /* Send out the next dts values */
-                    buf->start = dts_start;
-                    buf->stop  = dts_stop;
-
                     buf->size += size;
             }
         }
+        /* Send out the next dts values */
+        buf->start = dts_start;
+        buf->stop  = dts_stop;
     }
 
     else