summaryrefslogtreecommitdiffstats
path: root/src/dabplus-enc.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-29 15:56:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-29 15:56:26 +0100
commit891bb2592944aa2be2d81e1583e73e632e70537f (patch)
tree170c637a3a15b66cd5e4154d5968ddf1b2d5619a /src/dabplus-enc.cpp
parent2e91dde99246b3a843b86ac76ccd7d5d85959cf5 (diff)
downloadfdk-aac-dabplus-891bb2592944aa2be2d81e1583e73e632e70537f.tar.gz
fdk-aac-dabplus-891bb2592944aa2be2d81e1583e73e632e70537f.tar.bz2
fdk-aac-dabplus-891bb2592944aa2be2d81e1583e73e632e70537f.zip
Also reset audio level without -l
ZMQ output metadata also needs this.
Diffstat (limited to 'src/dabplus-enc.cpp')
-rw-r--r--src/dabplus-enc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index b98fa22..d0130fd 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -987,9 +987,6 @@ int main(int argc, char *argv[])
status & STATUS_UNDERRUN ? "U" : " ",
status & STATUS_OVERRUN ? "O" : " ");
}
-
- peak_right = 0;
- peak_left = 0;
}
else {
if (status & STATUS_OVERRUN) {
@@ -1002,6 +999,9 @@ int main(int argc, char *argv[])
}
+ peak_right = 0;
+ peak_left = 0;
+
status = 0;
}