mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-06 19:31:23 +00:00
h264_metadata: Fix memory leak on multiple display orientation messages
Fixes CID #1430176.
This commit is contained in:
parent
e5b4cd4c4a
commit
1c49365c62
@ -437,6 +437,10 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
|
||||
180.0 / 65536.0);
|
||||
av_display_matrix_flip(matrix, disp->hor_flip, disp->ver_flip);
|
||||
|
||||
// If there are multiple display orientation messages in an
|
||||
// access unit then ignore all but the last one.
|
||||
av_freep(&displaymatrix_side_data);
|
||||
|
||||
displaymatrix_side_data = (uint8_t*)matrix;
|
||||
displaymatrix_side_data_size = 9 * sizeof(int32_t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user