Hi,

I'm trying to do something like this:

----
AVCodecContext* c_ctx1 = avcodec_alloc_context();
AVCodecContext* c_ctx2 = avcodec_alloc_context();

AVCodec* codec = avcodec_find_decoder(CODEC_ID_VORBIS);

int ret1 = avcodec_open(c_ctx1, codec);
int ret2 = avcodec_open(c_ctx2, codec);
----

Then ret2 will be == -1 (ERROR).

This works with CODEC_ID_MP3 and other video decoders. So I'm not
suppose to open a codec twice or is there an error somewhere else?

Thanks,
Michael
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to