vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jun  5 13:14:36 
2018 +0200| [8e8859de6fcf7f0cd5d38daeae1d1bbd2774734e] | committer: Steve Lhomme

theora: copy the offset unconditionally

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

 modules/codec/theora.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index 3ba62464e9..9b63e08f9f 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -309,11 +309,8 @@ static int ProcessHeaders( decoder_t *p_dec )
         p_dec->fmt_out.video.i_visible_width = p_sys->ti.pic_width;
         p_dec->fmt_out.video.i_visible_height = p_sys->ti.pic_height;
 
-        if( p_sys->ti.pic_x || p_sys->ti.pic_y )
-        {
-            p_dec->fmt_out.video.i_x_offset = p_sys->ti.pic_x;
-            p_dec->fmt_out.video.i_y_offset = p_sys->ti.pic_y;
-        }
+        p_dec->fmt_out.video.i_x_offset = p_sys->ti.pic_x;
+        p_dec->fmt_out.video.i_y_offset = p_sys->ti.pic_y;
     }
 
     if( p_sys->ti.aspect_denominator && p_sys->ti.aspect_numerator )

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to