Skip to content

Commit

Permalink
MOD: cgo flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kylin2017 committed Feb 20, 2019
1 parent 270f19d commit 7ca820d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgo/ffmpeg/audio.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package ffmpeg

/*
#cgo CFLAGS: -I /xbin/ffmpeg_build/include
#cgo LDFLAGS: -L /xbin/ffmpeg_build/lib -lm -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice -lpostproc -lz -lx264 -lbz2 -lva -lrt -lfdk-aac
#include "ffmpeg.h"
int wrap_avcodec_decode_audio4(AVCodecContext *ctx, AVFrame *frame, void *data, int size, int *got) {
struct AVPacket pkt = {.data = data, .size = size};
Expand Down

0 comments on commit 7ca820d

Please sign in to comment.