avformat/nutenc: Write size into right dynamic buffer

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/338/head
Andreas Rheinhardt 5 years ago
parent 781c7a6217
commit f93bd30282
  1. 2
      libavformat/nutenc.c
  2. 2
      libavformat/version.h

@ -903,7 +903,7 @@ static int write_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int
put_str(dyn_bc, "ChannelLayout"); put_str(dyn_bc, "ChannelLayout");
put_s(dyn_bc, -2); put_s(dyn_bc, -2);
put_str(dyn_bc, "u64"); put_str(dyn_bc, "u64");
put_v(bc, 8); put_v(dyn_bc, 8);
avio_write(dyn_bc, data, 8); data+=8; avio_write(dyn_bc, data, 8); data+=8;
sm_data_count++; sm_data_count++;
} }

@ -33,7 +33,7 @@
// Also please add any ticket numbers that you believe might be affected here // Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 58 #define LIBAVFORMAT_VERSION_MAJOR 58
#define LIBAVFORMAT_VERSION_MINOR 42 #define LIBAVFORMAT_VERSION_MINOR 42
#define LIBAVFORMAT_VERSION_MICRO 102 #define LIBAVFORMAT_VERSION_MICRO 103
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \ LIBAVFORMAT_VERSION_MINOR, \

Loading…
Cancel
Save