changeset 3490:e410c33e60f6 libavformat

remove pts set hack, this is no more correct
author bcoudurier
date Sun, 22 Jun 2008 08:44:58 +0000
parents e9876fb1c84f
children 31aa7b51c13b
files ffmenc.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ffmenc.c	Sun Jun 22 01:35:43 2008 +0000
+++ b/ffmenc.c	Sun Jun 22 08:44:58 2008 +0000
@@ -74,13 +74,8 @@
         ffm->packet_ptr += len;
         buf += len;
         size -= len;
-        if (ffm->packet_ptr >= ffm->packet_end) {
-            /* special case : no pts in packet : we leave the current one */
-            if (ffm->pts == 0)
-                ffm->pts = pts;
-
+        if (ffm->packet_ptr >= ffm->packet_end)
             flush_packet(s);
-        }
     }
 }