blob: ddde38523aed01ee4840f4ba52c358cd106b9867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- examples/dmabuf-capture.c 2023-02-10 17:29:59.000000000 -0500
+++ examples/dmabuf-capture.c 2023-03-26 11:58:01.738090539 -0400
@@ -520,8 +520,15 @@
}
};
- av_log(ctx, AV_LOG_INFO, "Encoded frame %i (%i in queue)\n",
- ctx->avctx->frame_number, get_fifo_size(&ctx->vid_frames));
+ int64_t frame_num;
+
+#if LIBAVUTIL_VERSION_MAJOR >= 58
+ frame_num = ctx->avctx->frame_num;
+#else
+ frame_num = ctx->avctx->frame_number;
+#endif
+ av_log(ctx, AV_LOG_INFO, "Encoded frame %"PRIi64" (%i in queue)\n",
+ frame_num, get_fifo_size(&ctx->vid_frames));
} while (!ctx->err);
|