avidemux: use frames, not bytes, for position query in VBR streams
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Apr 2014 11:58:23 +0000 (12:58 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Apr 2014 11:58:23 +0000 (12:58 +0100)
Coverity 1139648

gst/avi/gstavidemux.c

index 0dc2517..37306d8 100644 (file)
@@ -466,7 +466,7 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
         if (stream->is_vbr) {
           /* VBR */
           pos = avi_stream_convert_frames_to_time_unchecked (stream,
-              stream->current_total);
+              stream->current_entry);
           GST_DEBUG_OBJECT (avi, "VBR convert frame %u, time %"
               GST_TIME_FORMAT, stream->current_entry, GST_TIME_ARGS (pos));
         } else if (stream->strf.auds->av_bps != 0) {