Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while 'luarocks make' #9

Open
Ammarah-Farooq opened this issue Jan 8, 2018 · 0 comments
Open

error while 'luarocks make' #9

Ammarah-Farooq opened this issue Jan 8, 2018 · 0 comments

Comments

@Ammarah-Farooq
Copy link

I think i don't have paths problem. I am getting error on error: ‘PIX_FMT_RGB24’ undeclared (first use in this function). kindly guide me.

[ 50%] Building C object CMakeFiles/thffmpeg.dir/thffmpeg.c.o
/home/ammarah/THFFmpeg/thffmpeg.c: In function ‘lockmgr’:
/home/ammarah/THFFmpeg/thffmpeg.c:66:14: warning: implicit declaration of function ‘pthread_mutex_init’ [-Wimplicit-function-declaration]
return !!pthread_mutex_init(*mtx, NULL);
^
/home/ammarah/THFFmpeg/thffmpeg.c:68:14: warning: implicit declaration of function ‘pthread_mutex_lock’ [-Wimplicit-function-declaration]
return !!pthread_mutex_lock(*mtx);
^
/home/ammarah/THFFmpeg/thffmpeg.c:70:14: warning: implicit declaration of function ‘pthread_mutex_unlock’ [-Wimplicit-function-declaration]
return !!pthread_mutex_unlock(*mtx);
^
/home/ammarah/THFFmpeg/thffmpeg.c:72:5: warning: implicit declaration of function ‘pthread_mutex_destroy’ [-Wimplicit-function-declaration]
pthread_mutex_destroy(*mtx);
^
/home/ammarah/THFFmpeg/thffmpeg.c: In function ‘AV_open’:
/home/ammarah/THFFmpeg/thffmpeg.c:145:5: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
if (avs->pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
^
In file included from /home/ammarah/THFFmpeg/thffmpeg.c:36:0:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/ammarah/THFFmpeg/thffmpeg.c:153:3: warning: ‘codec’ is deprecated [-Wdeprecated-declarations]
avs->pCodecCtx = avs->pFormatCtx->streams[avs->videoStream]->codec;
^
In file included from /home/ammarah/THFFmpeg/thffmpeg.c:36:0:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/ammarah/THFFmpeg/thffmpeg.c:172:3: warning: ‘avpicture_get_size’ is deprecated [-Wdeprecated-declarations]
int numBytes = avpicture_get_size(PIX_FMT_RGB24, avs->pCodecCtx->width,
^
In file included from /home/ammarah/THFFmpeg/thffmpeg.c:35:0:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5653:5: note: declared here
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
^
/home/ammarah/THFFmpeg/thffmpeg.c:172:37: error: ‘PIX_FMT_RGB24’ undeclared (first use in this function)
int numBytes = avpicture_get_size(PIX_FMT_RGB24, avs->pCodecCtx->width,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant