[FFmpeg-devel] [PATCH 2/3] avformat/aeadec: Use sample rate as time base
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Fri Mar 15 18:43:37 EET 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/aeadec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/aeadec.c b/libavformat/aeadec.c
index 20170a89b3..be18e7b725 100644
--- a/libavformat/aeadec.c
+++ b/libavformat/aeadec.c
@@ -25,6 +25,7 @@
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
+#include "internal.h"
#include "pcm.h"
#define AT1_SU_SIZE 212
@@ -91,6 +92,7 @@ static int aea_read_header(AVFormatContext *s)
av_channel_layout_default(&st->codecpar->ch_layout, channels);
st->codecpar->block_align = AT1_SU_SIZE * st->codecpar->ch_layout.nb_channels;
+ avpriv_set_pts_info(st, 64, 1, 44100);
return 0;
}
--
2.40.1
More information about the ffmpeg-devel
mailing list