]> granicus.if.org Git - handbrake/commitdiff
sync: don't drop short frames in OutputBuffer()
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 4 Jun 2018 18:02:06 +0000 (11:02 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 4 Jun 2018 18:02:06 +0000 (11:02 -0700)
*really* fix https://github.com/HandBrake/HandBrake/issues/1374 this
time.

libhb/sync.c

index 639baad46c226616318e41e96e5e07543f894dbf..2b7ec17d957142d7e3dc8667b4003399bce12897 100644 (file)
@@ -1769,8 +1769,7 @@ static void OutputBuffer( sync_common_t * common )
             log_chapter(common, buf->s.new_chap, out_stream->frame_count,
                         buf->s.start);
         }
-        if ((buf->s.start < 0) ||
-            (out_stream->type == SYNC_TYPE_VIDEO && buf->s.duration < 256))
+        if (buf->s.start < 0)
         {
             // The pipeline can't handle negative timestamps
             // and it is sometimes not possible to avoid one
@@ -1780,9 +1779,6 @@ static void OutputBuffer( sync_common_t * common )
             // until we have seen the first PTS for all streams
             // so sometimes we may start before we have seen
             // the earliest PTS
-            //
-            // Also, encx264.c can't handle timestamps that are spaced
-            // less than 256 ticks apart.
             saveChap(out_stream, buf);
             hb_buffer_close(&buf);
         }