[FFmpeg-cvslog] avformat/aeadec: Use sample rate as time base
Andreas Rheinhardt
git at videolan.org
Tue Mar 19 04:26:37 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Mar 15 17:20:44 2024 +0100| [7e41a658f531ae1fc49bc2441fd79d180a6eaa28] | committer: Andreas Rheinhardt
avformat/aeadec: Use sample rate as time base
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e41a658f531ae1fc49bc2441fd79d180a6eaa28
---
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;
}
More information about the ffmpeg-cvslog
mailing list