Commit 3c5c6870 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/movenc: avoid using uninitialized display_matrix_size

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 276a8666
......@@ -2302,7 +2302,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov,
display_matrix = (uint32_t*)av_stream_get_side_data(st, AV_PKT_DATA_DISPLAYMATRIX,
&display_matrix_size);
if (display_matrix_size < 9 * sizeof(*display_matrix))
if (display_matrix && display_matrix_size < 9 * sizeof(*display_matrix))
display_matrix = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment