Project

General

Profile

Bug #2403 » fix_deprecated_api.patch

Markus, 06/09/2016 07:54 PM

View differences:

command/decoder.cpp
video_context->codec_type=AVMEDIA_TYPE_UNKNOWN;
video_context->codec_id=AV_CODEC_ID_NONE;
video_context->codec_tag=0;
#if (LIBAVCODEC_VERSION_MAJOR < 57)
memset(video_context->codec_name,0,sizeof(video_context->codec_name));
#endif
#if LIBAVCODEC_VERSION_INT >= ((53<<16)+(5<<8)+0)
video_context->thread_count=threadcount;
ret=avcodec_open2(video_context, video_codec, NULL);
(2-2/2)