You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
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,
The text was updated successfully, but these errors were encountered: