mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
line21dec: Don't read more lines than the height of the frame
This commit is contained in:
parent
c16bc1c5a1
commit
36ba1e80b6
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ gst_line_21_decoder_scan (GstLine21Decoder * self, GstVideoFrame * frame)
|
|||
i = 0;
|
||||
}
|
||||
|
||||
for (; i < self->max_line_probes; i++) {
|
||||
for (; i < self->max_line_probes && i < GST_VIDEO_FRAME_HEIGHT (frame); i++) {
|
||||
gint n_lines;
|
||||
data = get_video_data (self, frame, i);
|
||||
/* Scan until we get n_lines == 2 */
|
||||
|
|
Loading…
Reference in a new issue