Replace deprecated FFmpeg API to fix build with ffmpeg-3.0.x

This commit is contained in:
Andreas Cadhalpun
2016-06-01 10:32:35 +01:00
committed by Robert Osfield
parent 5a4a5c3507
commit e85d574334
4 changed files with 26 additions and 31 deletions

View File

@@ -227,8 +227,7 @@ printf("### CONVERTING from sample format %s TO %s\n\t\tFROM %d TO %d channels\n
if (avcodec_open2(m_context, p_codec, NULL) < 0)
throw std::runtime_error("avcodec_open() failed");
m_context->get_buffer = avcodec_default_get_buffer;
m_context->release_buffer = avcodec_default_release_buffer;
m_context->get_buffer2 = avcodec_default_get_buffer2;
}