aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-04 14:29:32 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-04 14:29:32 +0100
commitfde78e58eb3c48135b6d96680fca7eb3d617f940 (patch)
treec3e91194637944c1e9f42113f84d518eaf89bfd5 /src
parent7604a3fbd99ec617274f77ecdd0a098abdb33f06 (diff)
downloaddabmux-fde78e58eb3c48135b6d96680fca7eb3d617f940.tar.gz
dabmux-fde78e58eb3c48135b6d96680fca7eb3d617f940.tar.bz2
dabmux-fde78e58eb3c48135b6d96680fca7eb3d617f940.zip
Change check priorities of checkDabMpegFrame
The function should anyway return something else than an enumeration...
Diffstat (limited to 'src')
-rw-r--r--src/mpeg.c6
1 files 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;
}