avidemux: short-circuit gst_avi_demux_src_convert() when parsing the index
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 8 Jun 2009 13:46:48 +0000 (14:46 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 24 Jun 2009 12:04:01 +0000 (13:04 +0100)
commit632bb7818ad93168cde1be2d02f8f8b92a7ae8af
treede89458f91ee528e79d34d4de07d6ec900c47238
parent86c2299ed103e59d2580f69711dcdb8efcf2c7cf
avidemux: short-circuit gst_avi_demux_src_convert() when parsing the index

Don't call gst_avi_demux_src_convert() for each single index entry. Not
only do we already have the pointer to the stream context, we also know
the formats we want to convert from and to already, so we may just as
well use optimised conversion routines that bypass some of the checks
and lookups made in gst_avi_demux_src_convert().
gst/avi/gstavidemux.c