On date Thursday 2008-12-25 03:03:04 +0000, Ash encoded: > > If I am to use two or more encoders at the same time (with different > output buffers and different codec contexts, although the same > codec), is there any rules I need to follow for thread safety or > will it work as is? > > For example the following code: > > avcodec_encode_video(codeccontext1, outbuf, outbuf_size, picture); > avcodec_encode_video(codeccontext2, outbuf1, outbuf_size1, picture1);
This is a perfectly thread-safe usage, as each encoder will use different context and data. Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
