[MPlayer-cvslog] r34628 - trunk/libmpdemux/muxer_lavf.c
reimar
subversion at mplayerhq.hu
Sat Jan 28 14:06:59 CET 2012
Author: reimar
Date: Sat Jan 28 14:06:59 2012
New Revision: 34628
Log:
Use avformat_new_stream.
While av_new_stream still exists in ffmpeg avformat.h,
the implementation was removed so we can't really use
it anymore.
Modified:
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c Sat Jan 28 13:57:58 2012 (r34627)
+++ trunk/libmpdemux/muxer_lavf.c Sat Jan 28 14:06:59 2012 (r34628)
@@ -147,12 +147,13 @@ static muxer_stream_t* lavf_new_stream(m
}
stream->priv = spriv;
- spriv->avstream = av_new_stream(priv->oc, 1);
+ spriv->avstream = avformat_new_stream(priv->oc, NULL);
if(!spriv->avstream)
{
mp_msg(MSGT_MUXER, MSGL_ERR, "Could not allocate avstream, EXIT.\n");
return NULL;
}
+ spriv->avstream->id = 1;
ctx = spriv->avstream->codec;
ctx->codec_id = CODEC_ID_NONE;
More information about the MPlayer-cvslog
mailing list