On 10/17/2014 02:32 AM, Martin Storsjö wrote:
I'm not sure if it's kosher to request e.g. a 6 channel AVFrame and then
just flip it to 2 channels after allocation - if it is, then we could of
course simplify that, but that is unrelated to this patch, this is what
we do already.

It's maybe mostly safe with interleaved sample formats, but I think it's best to avoid such unexpected, undocumented behavior. Definitely safer to free and reallocate buffers for the proper channel layout.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to