summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-12-15 19:09:57 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2014-12-15 22:12:26 +0000
commit918745604573aea49d05d69e6a56158f872ab07d (patch)
tree27ad4b7010e68bd19886455e2a5bae84d8d7437b /epan
parent82e63040b6a983c211eb8b5daf3b8bab47331e88 (diff)
downloadwireshark-918745604573aea49d05d69e6a56158f872ab07d.tar.gz
MP4: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang > 3.3
Change-Id: I0befc8846b9af43e1563adb369ba4d332775ef76 Reviewed-on: https://code.wireshark.org/review/5778 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/file-mp4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/file-mp4.c b/epan/dissectors/file-mp4.c
index de00274d48..51e57f23a7 100644
--- a/epan/dissectors/file-mp4.c
+++ b/epan/dissectors/file-mp4.c
@@ -223,7 +223,7 @@ dissect_mp4_mvhd_body(tvbuff_t *tvb, gint offset, gint len _U_,
vol = tvb_get_guint8(tvb, offset);
fract_dec = tvb_get_guint8(tvb, offset+1);
- rate += make_fract(fract_dec);
+ vol += make_fract(fract_dec);
proto_tree_add_double_format_value(tree, hf_mp4_mvhd_vol,
tvb, offset, 4, vol, "%f", vol);
offset += 2;