[svn r219] frames with timestamp less than zero are now skiped trunk
authormelunko
Wed Dec 13 16:09:47 2006 +0000 (2006-12-13)
branchtrunk
changeset 2183d84c6170960
parent 217 aba1e4be0053
child 219 5f7980370325
[svn r219] frames with timestamp less than zero are now skiped
gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c
     1.1 --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Tue Dec 12 18:21:08 2006 +0000
     1.2 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Wed Dec 13 16:09:47 2006 +0000
     1.3 @@ -720,12 +720,9 @@
     1.4            goto done;
     1.5        }
     1.6  
     1.7 -      if (h.i_timecode < 0) {
     1.8 -          h.i_timecode = h.i_timecode * -1;
     1.9 -          nuv->priv->time_diff = h.i_timecode;
    1.10 +      if ((h.i_timecode < 0)) {
    1.11 +	goto done;
    1.12        }
    1.13 -      else
    1.14 -          h.i_timecode += nuv->priv->time_diff;
    1.15  
    1.16        timestamp = h.i_timecode * GST_MSECOND;
    1.17        GST_BUFFER_TIMESTAMP (buf) = timestamp;
    1.18 @@ -774,7 +771,7 @@
    1.19        break;
    1.20      }
    1.21      case 'S':
    1.22 -    {
    1.23 +   {
    1.24        switch (h.i_compression) {
    1.25          case 'V':
    1.26            GST_DEBUG_OBJECT (nuv, "sending new video segment: %d", h.i_timecode);