Mercurial > mplayer.hg
changeset 34540:2b07cfa69882
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.
author | reimar |
---|---|
date | Sat, 28 Jan 2012 13:06:59 +0000 |
parents | 88bd2174f616 |
children | bdda068ba0a0 |
files | libmpdemux/muxer_lavf.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c Sat Jan 28 12:57:58 2012 +0000 +++ b/libmpdemux/muxer_lavf.c Sat Jan 28 13:06:59 2012 +0000 @@ -147,12 +147,13 @@ } 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;