mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
videoparsers: Fix unitialized variables
Makes macosx compiler happy
This commit is contained in:
parent
d9a930aa25
commit
8d050d2116
2 changed files with 5 additions and 5 deletions
|
@ -272,7 +272,7 @@ gst_dirac_parse_check_valid_frame (GstBaseParse * parse,
|
|||
drain = GST_BASE_PARSE_FRAME_DRAIN (frame);
|
||||
|
||||
if (!sync && !drain) {
|
||||
guint32 next_sync_word;
|
||||
guint32 next_sync_word = 0;
|
||||
|
||||
next_header = GST_READ_UINT32_BE (GST_BUFFER_DATA (frame->buffer) + 5);
|
||||
GST_LOG ("next header %d", next_header);
|
||||
|
|
|
@ -74,7 +74,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer,
|
|||
|
||||
GstBitReader br;
|
||||
guint8 tr;
|
||||
guint32 psc, temp32;
|
||||
guint32 psc = 0, temp32;
|
||||
guint8 temp8, pquant;
|
||||
gboolean hasplusptype;
|
||||
|
||||
|
@ -181,7 +181,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer,
|
|||
if (hasplusptype) {
|
||||
guint8 ufep;
|
||||
guint8 cpm;
|
||||
guint32 opptype, mpptype;
|
||||
guint32 opptype = 0, mpptype = 0;
|
||||
|
||||
/* 5.1.4 PLUSPTYPE */
|
||||
|
||||
|
@ -264,7 +264,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer,
|
|||
}
|
||||
|
||||
if (ufep == 1) {
|
||||
guint32 cpfmt;
|
||||
guint32 cpfmt = 0;
|
||||
|
||||
/* 5.1.5 CPFMT : Custom Picture Format (23 bits) */
|
||||
if (!gst_bit_reader_get_bits_uint32 (&br, &cpfmt, 23))
|
||||
|
@ -278,7 +278,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer,
|
|||
params->height = (cpfmt & 0x1f) * 4;
|
||||
|
||||
if (temp8 == 0xf) {
|
||||
guint32 epar;
|
||||
guint32 epar = 0;
|
||||
/* 5.1.6 EPAR : Extended Pixel Aspect Ratio (16bits) */
|
||||
if (!gst_bit_reader_get_bits_uint32 (&br, &epar, 16))
|
||||
goto more;
|
||||
|
|
Loading…
Reference in a new issue