From a4572825d8b772b3b74b602136e0b01c6f72e9fd Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 27 Apr 2016 18:34:06 +0200 Subject: cfhd: Drop some unnecessary casts --- libavcodec/cfhd.c | 4 ++-- 1 file 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); -- cgit v1.2.3