From fde78e58eb3c48135b6d96680fca7eb3d617f940 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 4 Nov 2016 14:29:32 +0100 Subject: Change check priorities of checkDabMpegFrame The function should anyway return something else than an enumeration... --- src/mpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mpeg.c b/src/mpeg.c index fb6591a..a48f5bb 100644 --- a/src/mpeg.c +++ b/src/mpeg.c @@ -233,15 +233,15 @@ int checkDabMpegFrame(void* data) { if (header->padding != 0) { return MPEG_PADDING; } + if (header->emphasis != 0) { + return MPEG_EMPHASIS; + } if (header->copyright != 0) { return MPEG_COPYRIGHT; } if (header->original != 0) { return MPEG_ORIGINAL; } - if (header->emphasis != 0) { - return MPEG_EMPHASIS; - } return -1; } -- cgit v1.2.3