FFVS-Project-Generator icon indicating copy to clipboard operation
FFVS-Project-Generator copied to clipboard

ffmpeg 7.1 project file generate incompleted

Open kpld opened this issue 1 year ago • 4 comments

ffmpeg 7.1 project file generate incompleted, and program quit.

kpld avatar Oct 08 '24 06:10 kpld

has not check the return value in file [projectGenerator_pass.cpp:168] startPos = m_inLine.find_first_not_of(".\/", startPos); need to add following code: if (startPos == string::npos) return true;

kpld avatar Oct 08 '24 07:10 kpld

Another compile error exist: error C2011: 'DBParams': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c) error C2011: 'RefPicList': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c) error C2011: 'RefPicListTab': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c)

kpld avatar Oct 08 '24 08:10 kpld

temporary add following lines in file [projectGenerator_compiler.cpp:95] to avoid struct type redefinition:

        if (extraCl.find("libavcodec/hevc") != string::npos && i.find("libavcodec/vvc") != string::npos) {
            continue;    
        }
        if (extraCl.find("libavcodec/vvc") != string::npos && i.find("libavcodec/hevc") != string::npos) {
            continue;
        }
        extraCl += " /I\"" + i + '\"';

kpld avatar Oct 09 '24 03:10 kpld

end of function ProjectGenerator::outputSourceFiles, filterKeys item count is less than foundFilters item count, so need to add some filter key constant. Or it will be crashed.

kpld avatar Oct 09 '24 03:10 kpld

has not check the return value in file [projectGenerator_pass.cpp:168] startPos = m_inLine.find_first_not_of("./", startPos); need to add following code: if (startPos == string::npos) return true;

Fixed in latest version of FFVS

Another compile error exist: error C2011: 'DBParams': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c) error C2011: 'RefPicList': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c) error C2011: 'RefPicListTab': 'struct' type redefinition (compiling source file ../ffmpeg-7.1/libavcodec/hevc/hevcdec.c)

This is actually an error due to an incorrect checkout of FFmpeg when upgrading to 7.1. A forced/clean checkout to latest version fixes this.

end of function ProjectGenerator::outputSourceFiles, filterKeys item count is less than foundFilters item count, so need to add some filter key constant. Or it will be crashed.

Fixed in latest version of FFVS

The latest FFVS has been updated and tested on ffmpeg 7.1 and should function correctly

Sibras avatar Oct 26 '24 17:10 Sibras