diff -r c517a78bf7bf -r d3d62eca131c gst-gmyth/nuvdemux/gstnuvdemux.c --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Wed Aug 22 17:57:16 2007 +0100 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Wed Nov 21 15:06:32 2007 +0000 @@ -882,13 +882,12 @@ goto done; } - if ((h.i_timecode < 0)) { - h.i_timecode = 0; - // goto done; + if ((h.i_timecode > 0) && (h.i_type == 'V')) { + g_debug ("TS: %ld", h.i_timecode); + timestamp = h.i_timecode * GST_MSECOND; + GST_BUFFER_TIMESTAMP(buf) = timestamp; } - timestamp = h.i_timecode * GST_MSECOND; - GST_BUFFER_TIMESTAMP(buf) = timestamp; } else { goto done; }