* the following function is a modified version of code
* found in ffmpeg-0.4.9-pre1/output_example.c
*/
static AVFrame * icv_alloc_picture_FFMPEG(int pix_fmt, int width, int height, bool alloc)
static AVFrame * icv_alloc_picture_FFMPEG(enum PixelFormat pix_fmt, int width, int height, bool alloc)
{
AVFrame * picture;
uint8_t * picture_buf;