mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-19 17:45:28 +00:00
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>
This commit is contained in:
parent
c0d483cecb
commit
9d10d3a4ee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user