[MPlayer-dev-eng] [PATCH] Remove auto-inserted lavc if vd init fails
Zoltan Hidvegi
mplayer at hzoli.2y.net
Sun Feb 27 08:05:29 CET 2005
When you play mpeg, the first video decoder which matches is mpegpes,
mpeg passthrough. If you use any video filters, it will fail of
course, but before that, it will try auto-inserting all kinds of
filters, and if the vo reports support for mpeg-pes, it will
auto-insert the lavc filter. The problem is that this auto-inserted
lavc stays in the filter chain even after the mpegpes vd fails, and
when the libmpeg2 vd is tried, the lavc filter will still remain in
the filter chain.
Fine but this all seems to be just a theoretical problem. But the
problem is that -vo null supports all formats, so if you play an mpeg
with -vo null, and you use any video filters, it will use the lavc
filter and mpegpes format for output, which is very slow, so in the
end, -vo null will be slower than -vo xv for example.
The attached patch removes the auto-inserted lavc if
mpcodecs_config_vo fails.
OK to commit?
Zoli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vo-mpes.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050227/1911fbdb/attachment.txt>
More information about the MPlayer-dev-eng
mailing list