[vlc-commits] packetizer: fix reading crop parameters

Francois Cartegnie git at videolan.org
Tue Feb 7 15:16:07 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  7 15:07:46 2017 +0100| [ba9273599578e05883c80432998250c04e892c7f] | committer: Francois Cartegnie

packetizer: fix reading crop parameters

copy/paste strikes again

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

 modules/packetizer/h264_nal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index a8b7110..1190fdc 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -385,7 +385,7 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
     {
         p_sps->frame_crop.left_offset = bs_read_ue( p_bs );
         p_sps->frame_crop.right_offset = bs_read_ue( p_bs );
-        p_sps->frame_crop.right_offset = bs_read_ue( p_bs );
+        p_sps->frame_crop.top_offset = bs_read_ue( p_bs );
         p_sps->frame_crop.bottom_offset = bs_read_ue( p_bs );
     }
 



More information about the vlc-commits mailing list