diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-06 11:45:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-08 19:00:26 +0100 |
commit | 519e22b31ece09f732210dc1b6379a4bd1092fc7 (patch) | |
tree | 5a1feaa93d55d6d19fc4393900fa25167a438afa | |
parent | 24f1997822026c442914ffc2141c195f072466e5 (diff) | |
download | ffmpeg-519e22b31ece09f732210dc1b6379a4bd1092fc7.tar.gz |
avformat/amr: Fix writing AMR header
Regression since f282c34c009e3653ec160c3880e64fc1a9300d0e.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit a22a71eb2c633335a037983fda0badc1863fc529)
-rw-r--r-- | libavformat/amr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c index 8e14052200..40d5bc9cc5 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -54,9 +54,9 @@ static int amr_write_header(AVFormatContext *s) AVCodecParameters *par = s->streams[0]->codecpar; if (par->codec_id == AV_CODEC_ID_AMR_NB) { - avio_write(pb, AMR_header, sizeof(AMR_header) - 1); /* magic number */ + avio_write(pb, AMR_header, sizeof(AMR_header)); /* magic number */ } else if (par->codec_id == AV_CODEC_ID_AMR_WB) { - avio_write(pb, AMRWB_header, sizeof(AMRWB_header) - 1); /* magic number */ + avio_write(pb, AMRWB_header, sizeof(AMRWB_header)); /* magic number */ } else { return -1; } |