[FFmpeg-cvslog] avcodec/cri: respect side data preference
Niklas Haas
git at videolan.org
Fri Mar 8 09:06:27 EET 2024
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sat Feb 17 21:40:19 2024 +0100| [2c2d3d5acbb46cf450cad708163a65e4831a61f4] | committer: Anton Khirnov
avcodec/cri: respect side data preference
This function was already ignoring OOM errors.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c2d3d5acbb46cf450cad708163a65e4831a61f4
---
libavcodec/cri.c | 4 ++--
1 file 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);
More information about the ffmpeg-cvslog
mailing list