[FFmpeg-cvslog] avformat/aptxdec: Don't set AVCodecParameters.frame_size
Andreas Rheinhardt
git at videolan.org
Mon Sep 19 18:06:50 EEST 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Aug 29 21:55:30 2021 +0200| [9d10d3a4ee7ccf3742c4d9dd26a781aaf2ab8ae9] | committer: Andreas Rheinhardt
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 at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d10d3a4ee7ccf3742c4d9dd26a781aaf2ab8ae9
---
libavformat/aptxdec.c | 2 --
1 file changed, 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;
}
More information about the ffmpeg-cvslog
mailing list