]> granicus.if.org Git - handbrake/commitdiff
encx264: Fix timecodes when using x264 with avi.
authorsaintdev <no-reply@handbrake.fr>
Wed, 5 Mar 2008 00:29:09 +0000 (00:29 +0000)
committersaintdev <no-reply@handbrake.fr>
Wed, 5 Mar 2008 00:29:09 +0000 (00:29 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1326 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index d61f2808b65d30bea2576e8106f19ed85ca8a920..8f976748d0a0f570026df045c78a2926a272f2f0 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