fix a memory leak when using avcodec_receive_frame()
fix a memory leak when using avcodec_receive_frame()

Also, fixes possibly using an unitialized codec_params.

mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt