summaryrefslogtreecommitdiff
path: root/poppler/Sound.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Sound.cc')
-rw-r--r--poppler/Sound.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/poppler/Sound.cc b/poppler/Sound.cc
index aa2ac8f2..c42051c8 100644
--- a/poppler/Sound.cc
+++ b/poppler/Sound.cc
@@ -74,10 +74,7 @@ Sound::Sound(const Object *obj, bool readAttrs)
kind = soundEmbedded;
}
// sampling rate
- tmp = dict->lookup("R");
- if (tmp.isNum()) {
- samplingRate = tmp.getNum();
- }
+ samplingRate = dict->lookup("R").getNumWithDefaultValue(0);
// sound channels
tmp = dict->lookup("C");
if (tmp.isInt()) {