aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDawid Kozinski <d.kozinski@samsung.com>2024-06-25 14:20:16 +0200
committerJames Almer <jamrial@gmail.com>2024-06-28 12:20:15 -0300
commit3e6c7948626f19c46c1a630c788ea6bbd9e7fbcb (patch)
treee559e29f345a55e2075a392ec8c83f3c749d10be /libavcodec
parent83b77990c6a3dc1d5840afbe894b0fdaeea40a3f (diff)
downloadffmpeg-3e6c7948626f19c46c1a630c788ea6bbd9e7fbcb.tar.gz
avcodec/evc: Alterations following changes in libxeve
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libxeve.c7
-rw-r--r--libavcodec/version.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/libxeve.c b/libavcodec/libxeve.c
index 1d9972619d..aca994702a 100644
--- a/libavcodec/libxeve.c
+++ b/libavcodec/libxeve.c
@@ -197,7 +197,8 @@ static int get_conf(AVCodecContext *avctx, XEVE_CDSC *cdsc)
if (avctx->framerate.num > 0) {
// fps can be float number, but xeve API doesn't support it
- cdsc->param.fps = lrintf(av_q2d(avctx->framerate));
+ cdsc->param.fps.num = avctx->framerate.num;
+ cdsc->param.fps.den = avctx->framerate.den;
}
// GOP size (key-frame interval, I-picture period)
@@ -481,8 +482,8 @@ static int libxeve_encode(AVCodecContext *avctx, AVPacket *avpkt,
memcpy(avpkt->data, xectx->bitb.addr, xectx->stat.write);
- avpkt->time_base.num = 1;
- avpkt->time_base.den = xectx->cdsc.param.fps;
+ avpkt->time_base.num = xectx->cdsc.param.fps.den;
+ avpkt->time_base.den = xectx->cdsc.param.fps.num;
avpkt->pts = xectx->bitb.ts[XEVE_TS_PTS];
avpkt->dts = xectx->bitb.ts[XEVE_TS_DTS];
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 37c4c39451..230d5fa13e 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
#include "version_major.h"
-#define LIBAVCODEC_VERSION_MINOR 8
+#define LIBAVCODEC_VERSION_MINOR 9
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \