On Thursday 01 October 2009 10:36:35 Alessandro Ferrari wrote: > 2009/10/1 Mario R. Carro <[email protected]> > > > On Thursday 01 October 2009 09:12:09 Alessandro Ferrari wrote: > > > 2009/10/1 Mario R. Carro <[email protected]> > > > > > > > For some reason related to avoiding buffer overflows the > > > > codec's type and id must be manually initialized before calling > > > > avcodec_open(). See commit r19973. > > > > > > > > Mario > > > > > > > > On Wednesday 30 September 2009 19:39:08 Silvain Beriault wrote: > > > > > Alessandro Ferrari wrote: > > > > > > I update the version of ffmpeg and my program that use > > > > > > ffmpeg api when i try to open mpeg4 decoder show this > > > > > > error. What could be the problem? Many thanks. > > > > > > Best Regards > > > > > > _______________________________________________ > > > > > > libav-user mailing list > > > > > > [email protected] > > > > > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > > > > > > > > I have had the exact same error (that was 2 days ago). I > > > > > temporarily downgraded to revision 19944 and it worked for > > > > > me. > > > > > > > > > > Silvain. > > > > > _______________________________________________ > > > > > libav-user mailing list > > > > > [email protected] > > > > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > > > > > > _______________________________________________ > > > > libav-user mailing list > > > > [email protected] > > > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > > > > What do you intent with manually initialized? I read > > > api-example.c in libavcodec and it seems there isn't any change > > > of api.. _______________________________________________ > > > libav-user mailing list > > > [email protected] > > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > > > api-example.c surely doesn't work anymore, unless is updated. I had > > to add the following in my code: > > > > ... > > codec_ctx->codec_id = the_codec_id; <-- this > > codec_ctx->codec_type = the_codec_type; <-- and this > > if (avcodec_open(codec_ctx, codec) < 0) > > { > > ... > > > > Mario > > _______________________________________________ > > libav-user mailing list > > [email protected] > > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > > Now it works well! Many thanks > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user >
Hi. Since r20125 the workaround for avcodec_open() it's not needed anymore. Previously working code should work again as before. Mario _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
