h264parse: correct debug message and remove some dead code

See #661113.
This commit is contained in:
Sreerenj Balachandran 2011-10-13 16:52:43 +03:00 committed by Mark Nauwelaerts
parent 0a478db7dd
commit f8239ff692

View File

@ -624,8 +624,7 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
"current offset: %u, Nal offset: %u, Nal Size: %u", "current offset: %u, Nal offset: %u, Nal Size: %u",
current_off, nalu.offset, nalu.size); current_off, nalu.offset, nalu.size);
current_off = nalu.offset + nalu.size; GST_DEBUG_OBJECT (h264parse, "current off. %u",
GST_DEBUG_OBJECT (h264parse, "current off. %u, %u", current_off,
nalu.offset + nalu.size); nalu.offset + nalu.size);
if (!h264parse->nalu.size && !h264parse->nalu.valid) if (!h264parse->nalu.size && !h264parse->nalu.valid)
h264parse->nalu = nalu; h264parse->nalu = nalu;
@ -1314,7 +1313,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
/* ERRORS */ /* ERRORS */
avcc_too_small: avcc_too_small:
{ {
GST_DEBUG_OBJECT (h264parse, "avcC size %u < 7", size); GST_DEBUG_OBJECT (h264parse, "avcC size %u < 8", size);
goto refuse_caps; goto refuse_caps;
} }
wrong_version: wrong_version: