remove direct libcall due to lib update

This commit is contained in:
2021-09-25 23:52:21 +02:00
parent 9f1d1255cb
commit 9a88c16559
4 changed files with 4 additions and 22 deletions

View File

@ -2,17 +2,6 @@
package thumbnail
/*
#cgo pkg-config: libavcodec
#include <stdlib.h>
#include "libavcodec/avcodec.h"
#include "libavutil/pixfmt.h"
*/
import "C"
import (
"github.com/3d0c/gmf"
"io"
@ -68,12 +57,7 @@ func decodePic(srcFileName string, decodeExtension string, time uint64) (pic *[]
cc.SetTimeBase(gmf.AVR{Num: 1, Den: 1})
// add missing codecs in lib
var (
AV_PIX_FMT_YUVJ444P int32 = C.AV_PIX_FMT_YUVJ444P
)
cc.SetPixFmt(AV_PIX_FMT_YUVJ444P).SetWidth(srcVideoStream.CodecPar().Width()).SetHeight(srcVideoStream.CodecPar().Height())
cc.SetPixFmt(gmf.AV_PIX_FMT_YUVJ444P).SetWidth(srcVideoStream.CodecPar().Width()).SetHeight(srcVideoStream.CodecPar().Height())
if codec.IsExperimental() {
cc.SetStrictCompliance(gmf.FF_COMPLIANCE_EXPERIMENTAL)
}