projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16bc1c
)
line21dec: Don't read more lines than the height of the frame
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 10 Dec 2018 13:42:04 +0000
(15:42 +0200)
committer
Sebastian Dröge
<slomo@coaxion.net>
Sat, 15 Dec 2018 21:31:28 +0000
(21:31 +0000)
ext/closedcaption/gstline21dec.c
patch
|
blob
|
history
diff --git
a/ext/closedcaption/gstline21dec.c
b/ext/closedcaption/gstline21dec.c
index
ef6451a
..
d5ffbe2
100644
(file)
--- a/
ext/closedcaption/gstline21dec.c
+++ b/
ext/closedcaption/gstline21dec.c
@@
-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 */