---
libavcodec/utils.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e04f455..27bf066 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -597,6 +597,15 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame
*frame)
memcpy(frame_sd->data, packet_sd, size);
}
+ /* copy rotation angle to the output frame */
+ packet_sd = av_packet_get_side_data(pkt, AV_PKT_DATA_ROTATION, &size);
+ if (packet_sd) {
+ frame_sd = av_frame_new_side_data(frame, AV_FRAME_DATA_ROTATION, size);
+ if (!frame_sd)
+ return AVERROR(ENOMEM);
+
+ memcpy(frame_sd->data, packet_sd, size);
+ }
return 0;
}
--
1.8.3.4 (Apple Git-47)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel