summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-02-17 21:40:19 +0100
committerAnton Khirnov <anton@khirnov.net>2024-03-04 13:59:21 +0100
commit16e97fb4b8d8965c30e63b3ebf474f81f8a31b28 (patch)
treed8418af1cb48b79e66d8282d5c21921e5fc91f90
parent3e223b909ddc102f46e22912fd192535c1110726 (diff)
avcodec/cri: respect side data preference
This function was already ignoring OOM errors.
-rw-r--r--libavcodec/cri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cri.c b/libavcodec/cri.c
index c4eb468610..990e52ac99 100644
--- a/libavcodec/cri.c
+++ b/libavcodec/cri.c
@@ -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);