/*
+ * Copyright 2012 Stefano Sabatini <stefasab gmail com>
+ *
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
const char *filename, void *log_ctx)
{
AVInputFormat *iformat = NULL;
- AVFormatContext *format_ctx;
+ AVFormatContext *format_ctx = NULL;
AVCodec *codec;
AVCodecContext *codec_ctx;
AVFrame *frame;
goto end;
ret = 0;
- av_image_copy(data, linesize, frame->data, frame->linesize, *pix_fmt, *w, *h);
+ av_image_copy(data, linesize, (const uint8_t **)frame->data, frame->linesize, *pix_fmt, *w, *h);
end:
if (codec_ctx)