ffmpeg: add libswscle ldlfags and header

This commit is contained in:
nareix 2016-08-16 15:34:39 +08:00
parent 37be18afca
commit 96979889d0
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
package ffmpeg package ffmpeg
/* /*
#cgo LDFLAGS: -lavformat -lavutil -lavcodec -lavresample #cgo LDFLAGS: -lavformat -lavutil -lavcodec -lavresample -lswscale
#include "ffmpeg.h" #include "ffmpeg.h"
void ffinit() { void ffinit() {
av_register_all(); av_register_all();

View File

@ -5,6 +5,7 @@
#include <libavresample/avresample.h> #include <libavresample/avresample.h>
#include <libavutil/opt.h> #include <libavutil/opt.h>
#include <string.h> #include <string.h>
#include <libswscale/swscale.h>
typedef struct { typedef struct {
AVCodec *codec; AVCodec *codec;