Fixed bug compiling for older ffmpeg versions < 3.2

This commit is contained in:
eisneinechse
2018-12-19 09:12:15 -08:00
parent de1bd4f506
commit 4dcc72a769
2 changed files with 22 additions and 1 deletions

View File

@@ -1053,6 +1053,7 @@ AVStream* FFmpegWriter::add_video_stream()
}
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55, 39, 101)
else {
#if IS_FFMPEG_3_2
if (hw_en_on) {
double mbs = 15000000.0;
if (info.video_bit_rate > 0) {
@@ -1065,7 +1066,9 @@ AVStream* FFmpegWriter::add_video_stream()
}
c->bit_rate = (int)(mbs);
}
else {
else
#endif
{
switch (c->codec_id) {
#if (LIBAVCODEC_VERSION_MAJOR >= 58)
case AV_CODEC_ID_AV1 :