flacparse: use shift instead of mask & comp

We are only interested on the first bit of the first
byte of the metadata block header to figure out whether
is marked as the last one. The shift makes it quite
clearer.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-12-31 14:12:36 -08:00
parent 8a745837aa
commit c43f84abf3

View file

@ -1558,7 +1558,7 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
res = GST_BASE_PARSE_FLOW_DROPPED;
} else if (flacparse->state == GST_FLAC_PARSE_STATE_HEADERS) {
gboolean is_last = ((map.data[0] & 0x80) == 0x80);
gboolean is_last = map.data[0] >> 7;
guint type = (map.data[0] & 0x7F);
if (type == 127) {