[vlc-devel] [PATCH] Support for rotated MP4 Movies (bug #2882)
Matthias Keiser
matthias at tristan-inc.com
Thu Feb 6 23:22:24 CET 2014
From ff7990295f51645a293d6db17020ab5363bedbc5 Mon Sep 17 00:00:00 2001
From: Matthias Keiser <matthias at tristan-inc.com>
Date: Thu, 6 Feb 2014 16:32:22 +0100
Subject: [PATCH 13/13] SpuRenderSubpictures: apply rotation to passed formats.
---
src/video_output/vout_subpictures.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 9a16590..cfb572a 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -39,6 +39,7 @@
#include <vlc_vout.h>
#include <vlc_filter.h>
#include <vlc_spu.h>
+#include <vlc_es.h>
#include "../libvlc.h"
#include "vout_internal.h"
@@ -1494,12 +1495,16 @@ subpicture_t *spu_Render(spu_t *spu,
* XXX The order is *really* important for overlap subtitles positionning */
qsort(subpicture_array, subpicture_count, sizeof(*subpicture_array), SubpictureCmp);
+ video_format_t fmt_dst_rot, fmt_src_rot;
+ video_format_ApplyRotation(fmt_dst, &fmt_dst_rot);
+ video_format_ApplyRotation(fmt_src, &fmt_src_rot);
+
/* Render the subpictures */
subpicture_t *render = SpuRenderSubpictures(spu,
subpicture_count, subpicture_array,
chroma_list,
- fmt_dst,
- fmt_src,
+ &fmt_dst_rot,
+ &fmt_src_rot,
render_subtitle_date,
render_osd_date);
vlc_mutex_unlock(&sys->lock);
--
1.8.3.4 (Apple Git-47)
More information about the vlc-devel
mailing list