Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-29 22:55:30 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-19 18:05:33 +0300
commit9d10d3a4ee7ccf3742c4d9dd26a781aaf2ab8ae9 (patch)
treef8c035eac323eb451f82aadd9236c3646f3c3cbd /libavformat/aptxdec.c
parentc0d483cecb3ca31574f850c031d66a34a4f2d140 (diff)
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>
Diffstat (limited to 'libavformat/aptxdec.c')
-rw-r--r--libavformat/aptxdec.c2
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;
}