FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
574 stars 104 forks source link

'avcodec_send_packet' was not declared in this scope #376

Closed weisui-ad closed 2 years ago

weisui-ad commented 3 years ago

src/core/audiosource.cpp: In member function 'int FFMS_AudioSource::DecodeNextBlock(FFMS_AudioSource::CacheIterator)': src/core/audiosource.cpp:300:56: error: 'avcodec_send_packet' was not declared in this scope int Ret = avcodec_send_packet(CodecContext, &Packet); ^ src/core/audiosource.cpp:304:58: error: 'avcodec_receive_frame' was not declared in this scope Ret = avcodec_receive_frame(CodecContext, DecodeFrame); ^ src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::OpenFile()': src/core/audiosource.cpp:466:80: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar' AVCodec Codec = avcodec_find_decoder(FormatContext->streams[TrackNumber]->codecpar->codec_id); ^ src/core/audiosource.cpp:476:90: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar' if (avcodec_parameters_to_context(CodecContext, FormatContext->streams[TrackNumber]->codecpar) < 0) ^ src/core/audiosource.cpp:476:98: error: 'avcodec_parameters_to_context' was not declared in this scope if (avcodec_parameters_to_context(CodecContext, FormatContext->streams[TrackNumber]->codecpar) < 0)