[FFmpeg-devel] sws_Context

C Chatterjee cchatterj at hotmail.com
Fri Oct 28 19:58:53 CEST 2011


I am working with MJPEG 422.
I noticed the following issues:
1. Color conversion from 422 to 420 with sws_Context using SINC filter causes color artifacts.
2. sws_Contexts have memory allocation. In ffmpeg cmdutils.c init_opts() we do:
    sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC, NULL, NULL, NULL);
    and in uninit_opts() we do:
    av_freep(&sws_opts);
    Are we freeing all memories allocated?
   See ff_yuv2rgb_c_init_tables() where we do c->yuvTable = av_malloc(1024*3);
3. Is sws_Context non-reentrant due to global variables?

Chanchal

 		 	   		  


More information about the ffmpeg-devel mailing list