summaryrefslogtreecommitdiff
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index b9e28cb3a2..32402a7114 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -354,8 +354,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
case 11:
case 21:
- size = (size_segment[0] << 16) | (size_segment[1] << 8) |
- size_segment[2];
+ size = AV_RB24(size_segment);
size_segment += 3;
break;
}