Mercurial > mplayer.hg
changeset 16001:b939c687986f
LIBAVFORMAT_BUILD >= 4629
author | michael |
---|---|
date | Mon, 18 Jul 2005 00:10:09 +0000 |
parents | cc9662daeccf |
children | 433234c2a4aa |
files | libmpdemux/muxer_lavf.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c Sun Jul 17 23:54:48 2005 +0000 +++ b/libmpdemux/muxer_lavf.c Mon Jul 18 00:10:09 2005 +0000 @@ -130,7 +130,11 @@ } spriv->avstream->stream_copy = 1; +#if LIBAVFORMAT_BUILD >= 4629 + ctx = spriv->avstream->codec; +#else ctx = &(spriv->avstream->codec); +#endif ctx->codec_id = muxer->avih.dwStreams; switch(type) { @@ -155,7 +159,11 @@ muxer_stream_priv_t *spriv = (muxer_stream_priv_t *) stream->priv; AVCodecContext *ctx; +#if LIBAVFORMAT_BUILD >= 4629 + ctx = spriv->avstream->codec; +#else ctx = &(spriv->avstream->codec); +#endif if(stream->type == MUXER_TYPE_AUDIO) {