[FFmpeg-devel] [PATCH 09/10] avformat/nutenc: Write size into right dynamic buffer

Michael Niedermayer michael at niedermayer.cc
Tue May 5 16:22:36 EEST 2020


On Mon, May 04, 2020 at 08:22:49PM +0200, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavformat/nutenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
> index 5735055d19..6df7dfe210 100644
> --- a/libavformat/nutenc.c
> +++ b/libavformat/nutenc.c
> @@ -902,7 +902,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++;
>                  }

muxer/encoder fixes should bump LIBAVFORMAT_VERSION_MICRO so the
issue can be dectected unambigously on the demuxer side

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If the United States is serious about tackling the national security threats 
related to an insecure 5G network, it needs to rethink the extent to which it
values corporate profits and government espionage over security.-Bruce Schneier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200505/aad2b5d7/attachment.sig>


More information about the ffmpeg-devel mailing list