# HG changeset patch # User melunko # Date 1166026187 0 # Node ID 3d84c617096032ae4c01565c5f8894936048d465 # Parent aba1e4be00535d420063d4eaf90df3bb0e24459c [svn r219] frames with timestamp less than zero are now skiped diff -r aba1e4be0053 -r 3d84c6170960 gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Tue Dec 12 18:21:08 2006 +0000 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Wed Dec 13 16:09:47 2006 +0000 @@ -720,12 +720,9 @@ goto done; } - if (h.i_timecode < 0) { - h.i_timecode = h.i_timecode * -1; - nuv->priv->time_diff = h.i_timecode; + if ((h.i_timecode < 0)) { + goto done; } - else - h.i_timecode += nuv->priv->time_diff; timestamp = h.i_timecode * GST_MSECOND; GST_BUFFER_TIMESTAMP (buf) = timestamp; @@ -774,7 +771,7 @@ break; } case 'S': - { + { switch (h.i_compression) { case 'V': GST_DEBUG_OBJECT (nuv, "sending new video segment: %d", h.i_timecode);