mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/cri: respect side data preference
This function was already ignoring OOM errors.
This commit is contained in:
parent
01056078ed
commit
2c2d3d5acb
@ -398,8 +398,8 @@ skip:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hflip || vflip) {
|
if (hflip || vflip) {
|
||||||
rotation = av_frame_new_side_data(p, AV_FRAME_DATA_DISPLAYMATRIX,
|
ff_frame_new_side_data(avctx, p, AV_FRAME_DATA_DISPLAYMATRIX,
|
||||||
sizeof(int32_t) * 9);
|
sizeof(int32_t) * 9, &rotation);
|
||||||
if (rotation) {
|
if (rotation) {
|
||||||
av_display_rotation_set((int32_t *)rotation->data, 0.f);
|
av_display_rotation_set((int32_t *)rotation->data, 0.f);
|
||||||
av_display_matrix_flip((int32_t *)rotation->data, hflip, vflip);
|
av_display_matrix_flip((int32_t *)rotation->data, hflip, vflip);
|
||||||
|
Loading…
Reference in New Issue
Block a user