rtph261pay: Fix uninitialized variable compiler error
endpos variable does not correctly understand in the 4.6.3 GCC version. So compile error appears when we do compile rtph261pay using jhbuild. This patch is fixed the compile error in 4.6.3 GCC version. https://bugzilla.gnome.org/show_bug.cgi?id=751985
This commit is contained in:
parent
439f98ed9a
commit
2f016f3f9d
@ -668,23 +668,18 @@ parse_mb_until_pos (GstRtpH261Pay * pay, GstBitReader * br, Gob * gob,
|
|||||||
gint count = 0;
|
gint count = 0;
|
||||||
gboolean stop = FALSE;
|
gboolean stop = FALSE;
|
||||||
guint maxpos = *endpos;
|
guint maxpos = *endpos;
|
||||||
|
Macroblock mb;
|
||||||
|
|
||||||
GST_LOG_OBJECT (pay, "Parse until pos %u, start at pos %u, gobn %d, mba %d",
|
GST_LOG_OBJECT (pay, "Parse until pos %u, start at pos %u, gobn %d, mba %d",
|
||||||
maxpos, gst_bit_reader_get_pos (br), gob->gn, gob->last.mba);
|
maxpos, gst_bit_reader_get_pos (br), gob->gn, gob->last.mba);
|
||||||
|
|
||||||
while (!stop) {
|
while (!stop) {
|
||||||
Macroblock mb;
|
|
||||||
|
|
||||||
ret = parse_mb (pay, br, &gob->last, &mb);
|
ret = parse_mb (pay, br, &gob->last, &mb);
|
||||||
|
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case PARSE_OK:
|
case PARSE_OK:
|
||||||
if (mb.endpos > maxpos && count > 0) {
|
if (mb.endpos > maxpos && count > 0) {
|
||||||
/* Don't include current MB */
|
/* Don't include current MB */
|
||||||
GST_DEBUG_OBJECT (pay,
|
|
||||||
"Split GOBN %d after MBA %d (endpos %u, maxpos %u, nextpos %u)",
|
|
||||||
gob->gn, gob->last.mba, *endpos, maxpos, mb.endpos);
|
|
||||||
gst_bit_reader_set_pos (br, *endpos);
|
|
||||||
stop = TRUE;
|
stop = TRUE;
|
||||||
} else {
|
} else {
|
||||||
/* Update to include current MB */
|
/* Update to include current MB */
|
||||||
@ -724,6 +719,13 @@ parse_mb_until_pos (GstRtpH261Pay * pay, GstBitReader * br, Gob * gob,
|
|||||||
}
|
}
|
||||||
gob->last.gobn = gob->gn;
|
gob->last.gobn = gob->gn;
|
||||||
|
|
||||||
|
if(ret == PARSE_OK) {
|
||||||
|
GST_DEBUG_OBJECT (pay,
|
||||||
|
"Split GOBN %d after MBA %d (endpos %u, maxpos %u, nextpos %u)",
|
||||||
|
gob->gn, gob->last.mba, *endpos, maxpos, mb.endpos);
|
||||||
|
gst_bit_reader_set_pos (br, *endpos);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user