g++ -g -O3 -std=c++11 -Wall -Wextra -fno-exceptions -fno-rtti -MD -march=native -c -o movie.o movie.cc
movie.cc: In member function ‘void Movie::PrepareRGB(int, int)’:
movie.cc:56:42: error: ‘PIX_FMT_RGB24’ was not declared in this scope
width_, height_, PIX_FMT_RGB24, SWS_FAST_BILINEAR,
^
In file included from graphic.h:10:0,
from movie.h:9,
from movie.cc:4:
movie.cc:64:38: error: ‘avcodec_alloc_frame’ was not declared in this scope
CHECK(frame_ = avcodec_alloc_frame());
^
movie.cc:66:19: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
int rgb_bytes = avpicture_get_size(PIX_FMT_RGB24, width_, height_);
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4898:5: note: declared here
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
^
movie.cc:66:19: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
int rgb_bytes = avpicture_get_size(PIX_FMT_RGB24, width_, height_);
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4898:5: note: declared here
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
^
movie.cc:69:14: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
int prep = avpicture_fill(reinterpret_cast<AVPicture*>(frame_rgb_),
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4883:5: note: declared here
int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
^
movie.cc:69:14: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
int prep = avpicture_fill(reinterpret_cast<AVPicture*>(frame_rgb_),
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4883:5: note: declared here
int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
^
movie.cc: In member function ‘Graphic Movie::Next()’:
movie.cc:94:5: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&packet);
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4040:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
movie.cc:94:5: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&packet);
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4040:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
movie.cc:94:27: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&packet);
^
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:318:0,
from movie.cc:10:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4040:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
<ビルトイン>: ターゲット 'movie.o' のレシピで失敗しました
make: *** [movie.o] エラー 1