Код: Выделить всё
// The video I want to play is in the following folder: assets/Videos/video.mp4, Therefore, the route is:
const char Ruta = "Videos/video.mp4";
int ret = avformat_open_input(&pFormatCtx,Ruta,NULL,NULL);
char errbuf[AV_ERROR_MAX_STRING_SIZE];
if(av_strerror(ret, errbuf, sizeof(errbuf)) < 0) {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,"*** ERROR ***","Error converting FFmpeg error code",nullptr);
}
else{
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,"*** ERROR ***",(const char *)errbuf,nullptr);
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... on-android