From 4fe4c408aa33a75ba72add42e23dbe560c782cab Mon Sep 17 00:00:00 2001 From: "Baik S. Hyun" Date: Tue, 29 Jun 2021 13:15:56 +0900 Subject: [PATCH] add debug msg --- cgo/ffmpeg/ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cgo/ffmpeg/ffmpeg.c b/cgo/ffmpeg/ffmpeg.c index 8f429dd..7d72538 100644 --- a/cgo/ffmpeg/ffmpeg.c +++ b/cgo/ffmpeg/ffmpeg.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "ffmpeg.h" @@ -15,6 +16,9 @@ int decode(AVCodecContext *avctx, AVFrame *frame, uint8_t *data, int size, int * *got_frame = 0; + printf("avctx: %p", avctx) + printf("avctx->internal: %p", avctx->internal) + ret = avcodec_send_packet(avctx, &pkt); av_packet_unref(&pkt);