Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8b963cd2 by Steve Lhomme at 2026-01-07T13:03:07+00:00
decoder_helpers: check the decoder output has legit dimensions

This will help find bogus decoder/demuxer values early.

- - - - -


1 changed file:

- src/input/decoder_helpers.c


Changes:

=====================================
src/input/decoder_helpers.c
=====================================
@@ -185,6 +185,9 @@ int decoder_UpdateVideoOutput( decoder_t *dec, 
vlc_video_context *vctx_out )
         }
     }
 
+    assert(dec->fmt_out.video.i_visible_width  + dec->fmt_out.video.i_x_offset 
<= dec->fmt_out.video.i_width);
+    assert(dec->fmt_out.video.i_visible_height + dec->fmt_out.video.i_y_offset 
<= dec->fmt_out.video.i_height);
+
     video_format_AdjustColorSpace( &dec->fmt_out.video );
 
     if (dec->cbs->video.format_update == NULL)



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/8b963cd263da120be1e38318ffa73f7f683a9855

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/8b963cd263da120be1e38318ffa73f7f683a9855
You're receiving this email because of your account on code.videolan.org.


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

Reply via email to