# HG changeset patch # User cehoyos # Date 1320345959 0 # Node ID c1b5018b5edbfea61b93e31510401b571764a46a # Parent 362c9229e16e48ee7dc6225f167fbce60ef434f8 Use new API avformat_new_stream() instead of the deprecated av_new_stream(). Patch by Naoya OYAMA, naoya D oyama gmail diff -r 362c9229e16e -r c1b5018b5edb libmpcodecs/ad_spdif.c --- a/libmpcodecs/ad_spdif.c Thu Nov 03 18:43:49 2011 +0000 +++ b/libmpcodecs/ad_spdif.c Thu Nov 03 18:45:59 2011 +0000 @@ -117,7 +117,7 @@ read_packet, write_packet, seek); if (!lavf_ctx->pb) goto fail; - stream = av_new_stream(lavf_ctx, 0); + stream = avformat_new_stream(lavf_ctx, 0); if (!stream) goto fail; lavf_ctx->duration = AV_NOPTS_VALUE;