[vlc-commits] Fixed i_original_picture_width/ height fields of the subpicture returned by spu_Render().

Laurent Aimar git at videolan.org
Thu Apr 14 23:33:34 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Apr 14 22:29:14 2011 +0200| [90032a33913e6b73def44ef0996dc6064d189c69] | committer: Laurent Aimar

Fixed i_original_picture_width/height fields of the subpicture returned by spu_Render().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90032a33913e6b73def44ef0996dc6064d189c69
---

 src/video_output/vout_subpictures.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index dc21fa7..8ec919c 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1064,6 +1064,8 @@ static subpicture_t *SpuRenderSubpictures( spu_t *p_spu,
     subpicture_t *p_output = subpicture_New( NULL );
     if( !p_output )
         return NULL;
+    p_output->i_original_picture_width  = p_fmt_dst->i_width;
+    p_output->i_original_picture_height = p_fmt_dst->i_height;
     subpicture_region_t **pp_output_last = &p_output->p_region;
 
     /* Allocate area array for subtitle overlap */



More information about the vlc-commits mailing list