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 18:09:02 +0100 |
commit | a22a71eb2c633335a037983fda0badc1863fc529 (patch) | |
tree | e45623005d62365da4a3f6c5354ea794969d7978 /libavformat/amr.c | |
parent | a5a99cc11c7aea587c871d6ca3fc80d9f9828e27 (diff) | |
download | ffmpeg-a22a71eb2c633335a037983fda0badc1863fc529.tar.gz |
avformat/amr: Fix writing AMR header
Regression since f282c34c009e3653ec160c3880e64fc1a9300d0e.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/amr.c')
-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; } |