diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-04 18:49:22 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-05 19:35:38 +0200 |
commit | f93bd302821e08df5ee037e67c4b85bec5d4d475 (patch) | |
tree | c31af8c0033f7512dd9bf4ab31ec94e936ceccac /libavformat/nutenc.c | |
parent | 781c7a6217e1afe68c85c500ae16b4bc7ea7b033 (diff) | |
download | ffmpeg-f93bd302821e08df5ee037e67c4b85bec5d4d475.tar.gz |
avformat/nutenc: Write size into right dynamic buffer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index ca433038d4..6d3bf6c21e 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -903,7 +903,7 @@ static int write_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int put_str(dyn_bc, "ChannelLayout"); put_s(dyn_bc, -2); put_str(dyn_bc, "u64"); - put_v(bc, 8); + put_v(dyn_bc, 8); avio_write(dyn_bc, data, 8); data+=8; sm_data_count++; } |