[MPlayer-dev-eng] [PATCH] AVCodecTag redefined when using external libavformat

Michael Niedermayer michaelni at gmx.at
Thu Jan 25 02:28:17 CET 2007


Hi

On Wed, Jan 24, 2007 at 11:06:51PM +0100, Nico Sabbi wrote:
> Hi,
> following a simplified version of one of Michael's advices in ffmpeg-devel
> this patch redefines the structure AVCodecTag (defined in riff.h but not 
> installed)
> when  using LIBAVFORMAT_SO (and finally restoring compilation).
> Michael, if you don't object I'll commit soon

i do object, either include riff.h (ugly and it will break when related
things change in lav* but its simple ...) or remove riff.h dependancy
that is NEVER include riff.h and NEVER access any internal things from it
like codec_bmp_tags but rather use the public interface

especiall with .so using the public interface (that 
is av_codec_get_id/av_codec_get_tag) and using your own code for keeping
track of your own tags seem like a good idea later really is just a matter
of copy&paste&rename of AVCodecTag and the 2 tiny functions to access it

yet another alternative would be to verify that AVCodecTag as it is,
currently is sufficient for all (de)muxers so that it wont need to
be changed in the future, in that case it could be moved to avformat.h
which would also solve this issue

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070125/4b3a9c98/attachment.pgp>


More information about the MPlayer-dev-eng mailing list