diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-29 21:55:30 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-19 17:05:33 +0200 |
commit | 9d10d3a4ee7ccf3742c4d9dd26a781aaf2ab8ae9 (patch) | |
tree | f8c035eac323eb451f82aadd9236c3646f3c3cbd | |
parent | c0d483cecb3ca31574f850c031d66a34a4f2d140 (diff) | |
download | ffmpeg-9d10d3a4ee7ccf3742c4d9dd26a781aaf2ab8ae9.tar.gz |
avformat/aptxdec: Don't set AVCodecParameters.frame_size
This field was misunderstood: It gives the number of samples
in a packet, not the number of bytes. Its usage was wrong for APTX HD.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/aptxdec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/aptxdec.c b/libavformat/aptxdec.c index 693316eeb0..aa86bfe330 100644 --- a/libavformat/aptxdec.c +++ b/libavformat/aptxdec.c @@ -58,7 +58,6 @@ static int aptx_read_header(AVFormatContext *s) st->codecpar->codec_id = AV_CODEC_ID_APTX; st->codecpar->bits_per_coded_sample = 4; st->codecpar->block_align = APTX_BLOCK_SIZE; - st->codecpar->frame_size = APTX_PACKET_SIZE; return 0; } @@ -70,7 +69,6 @@ static int aptx_hd_read_header(AVFormatContext *s) st->codecpar->codec_id = AV_CODEC_ID_APTX_HD; st->codecpar->bits_per_coded_sample = 6; st->codecpar->block_align = APTX_HD_BLOCK_SIZE; - st->codecpar->frame_size = APTX_HD_PACKET_SIZE; return 0; } |