Bug in metadata/ffmpeg_handler.cc

2012-09-15
2013-05-30
  • Joseph Wang
    Joseph Wang
    2012-09-15

    There is a bug in FfmpegHandler::fillMetadata since pFormatCtx is not allocated and so everything will segfault

    -       AVFormatContext *pFormatCtx;
    +    AVFormatContext *pFormatCtx = avformat_alloc_context();

    at the end of the function there needs to be a

    avformat_free_context(pFormatCtx)