summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-04-27 18:34:06 +0200
committerAnton Khirnov <anton@khirnov.net>2016-07-25 13:57:00 +0200
commita4572825d8b772b3b74b602136e0b01c6f72e9fd (patch)
treeab5b9dc96ce5fd22a26a2c2da841be8127d5c523
parent6eaee2072fe55cb07a2710b428cdd851cb006747 (diff)
cfhd: Drop some unnecessary casts
-rw-r--r--libavcodec/cfhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index a1c8ef1dd8..9a3bb38656 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -686,8 +686,8 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
while (bytestream2_get_bytes_left(&gb) > 4) {
/* Bit weird but implement the tag parsing as the spec says */
uint16_t tagu = bytestream2_get_be16(&gb);
- int16_t tag = (int16_t)tagu;
- int8_t tag8 = (int8_t)(tagu >> 8);
+ int16_t tag = tagu;
+ int8_t tag8 = tagu >> 8;
uint16_t abstag = abs(tag);
int8_t abs_tag8 = abs(tag8);
uint16_t data = bytestream2_get_be16(&gb);