[Libav-user] Error avformat_open_input

geronimo eberle Geroo.cs at live.com.ar
Wed Sep 2 02:47:14 EEST 2020


hellow!
im a new user whit FFmpeg and im trying to do a video editor whit c++.
my error its:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "int __cdecl avformat_open_input(struct AVFormatContext * *,char const *,struct AVInputFormat *,struct AVDictionary * *)" (?avformat_open_input@@YAHPAPAUAVFormatContext@@PBDPAUAVInputFormat@@PAPAUAVDictionary@@@Z) referenced in function "bool __cdecl load_video(char const *)"

the code its:

const char *filename = "prueba.mp4";
bool load_video(const char* filename)
{
AVFormatContext *av_format_context = NULL;
if (!av_format_context)
{
cout << "no se pudo cargar context";
return false;
}
if (avformat_open_input(&av_format_context, filename, NULL, NULL) != 0)
{
cout << "no se pudo cargar viedo";
return false;
}

return true;
};

Sorry for my bad english, and ty for your help!

Obtener Outlook para Android<https://aka.ms/ghei36>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200901/82f21bc4/attachment.html>


More information about the Libav-user mailing list