diff mbox series

[FFmpeg-devel,2/3] avformat/aeadec: Use sample rate as time base

Message ID AS8P250MB0744EA62B8814B281C7F9C7E8F282@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 7e41a658f531ae1fc49bc2441fd79d180a6eaa28
Headers show
Series [FFmpeg-devel,1/3] avformat/aeadec: Export title | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 15, 2024, 4:43 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/aeadec.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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;
 }