Commit 2c2d3d5a authored by Niklas Haas's avatar Niklas Haas Committed by Anton Khirnov

avcodec/cri: respect side data preference

This function was already ignoring OOM errors.
parent 01056078
......@@ -398,8 +398,8 @@ skip:
}
if (hflip || vflip) {
rotation = av_frame_new_side_data(p, AV_FRAME_DATA_DISPLAYMATRIX,
sizeof(int32_t) * 9);
ff_frame_new_side_data(avctx, p, AV_FRAME_DATA_DISPLAYMATRIX,
sizeof(int32_t) * 9, &rotation);
if (rotation) {
av_display_rotation_set((int32_t *)rotation->data, 0.f);
av_display_matrix_flip((int32_t *)rotation->data, hflip, vflip);
......
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