ffmpeg | branch: release/4.1 | Jeremy Dorfman <jdorf...@google.com> | Mon Apr 8 08:14:27 2019 -0400| [420fe39aff3dff17b064630963bbea1bdcdf79f4] | committer: James Almer
avformat/av1: Initialize padding in ff_isom_write_av1c Otherwise, AV1 encodes with FFmpeg trigger use-of-uninitialized-value warnings under MemorySanitizer, and the output buffer potentially changes from run to run. Signed-off-by: James Almer <jamr...@gmail.com> (cherry picked from commit bb5efd1727eeecc9be8f1402810c7ab72344eed3) > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=420fe39aff3dff17b064630963bbea1bdcdf79f4 --- libavformat/av1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/av1.c b/libavformat/av1.c index a0aad436a6..5fde8df97e 100644 --- a/libavformat/av1.c +++ b/libavformat/av1.c @@ -372,6 +372,7 @@ int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size) put_bits(&pbc, 1, seq_params.chroma_subsampling_x); put_bits(&pbc, 1, seq_params.chroma_subsampling_y); put_bits(&pbc, 2, seq_params.chroma_sample_position); + put_bits(&pbc, 8, 0); // padding flush_put_bits(&pbc); avio_write(pb, header, sizeof(header)); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".