1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

LIBAVFORMAT_BUILD >= 4629

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16002 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2005-07-18 00:10:09 +00:00
parent 096500035d
commit 57b7f68b80

View File

@ -130,7 +130,11 @@ static muxer_stream_t* lavf_new_stream(muxer_t *muxer, int type)
}
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 @@ static void fix_parameters(muxer_stream_t *stream)
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)
{