summaryrefslogtreecommitdiff
path: root/gst/audioparsers
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-31 14:12:36 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-31 14:12:36 -0800
commitc43f84abf3c270ba0d787ff9402ca620f6738de0 (patch)
treed6ed98e40e8aac7667cf233e1efe0bb7b87330f2 /gst/audioparsers
parent8a745837aae0ccd3fabb2169fa6bc4771f035179 (diff)
downloadgstreamer-plugins-good-c43f84abf3c270ba0d787ff9402ca620f6738de0.tar.gz
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.
Diffstat (limited to 'gst/audioparsers')
-rw-r--r--gst/audioparsers/gstflacparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c
index 86e84ea95..98593b8b0 100644
--- a/gst/audioparsers/gstflacparse.c
+++ b/gst/audioparsers/gstflacparse.c
@@ -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) {