avformat/aeadec: Use sample rate as time base

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.0
Andreas Rheinhardt 10 months ago
parent 103965053b
commit 7e41a658f5
  1. 2
      libavformat/aeadec.c

@ -25,6 +25,7 @@
#include "avformat.h" #include "avformat.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "demux.h" #include "demux.h"
#include "internal.h"
#include "pcm.h" #include "pcm.h"
#define AT1_SU_SIZE 212 #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); av_channel_layout_default(&st->codecpar->ch_layout, channels);
st->codecpar->block_align = AT1_SU_SIZE * st->codecpar->ch_layout.nb_channels; st->codecpar->block_align = AT1_SU_SIZE * st->codecpar->ch_layout.nb_channels;
avpriv_set_pts_info(st, 64, 1, 44100);
return 0; return 0;
} }

Loading…
Cancel
Save