aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dxtory.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-26 12:47:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-26 12:51:40 +0200
commitee2e5acdb13f9ca9d3cc39258c4f30773c212449 (patch)
tree8a5c4b693b62a2dcbc39b25190da00db336df5b7 /libavcodec/dxtory.c
parent4c57be124f42ff7e191453f6c482d567ecee8cda (diff)
downloadffmpeg-ee2e5acdb13f9ca9d3cc39258c4f30773c212449.tar.gz
avcodec/dxtory: remove unused variables
Found-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxtory.c')
-rw-r--r--libavcodec/dxtory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/dxtory.c b/libavcodec/dxtory.c
index 7e2ff27ad6..ee5d7313cc 100644
--- a/libavcodec/dxtory.c
+++ b/libavcodec/dxtory.c
@@ -410,7 +410,7 @@ static int dxtory_decode_v2_410(AVCodecContext *avctx, AVFrame *pic,
{
GetByteContext gb;
GetBitContext gb2;
- int nslices, slice, slice_height, ref_slice_height;
+ int nslices, slice, slice_height;
int cur_y, next_y;
uint32_t off, slice_size;
uint8_t *Y, *U, *V;
@@ -430,7 +430,6 @@ static int dxtory_decode_v2_410(AVCodecContext *avctx, AVFrame *pic,
return AVERROR_PATCHWELCOME;
}
- ref_slice_height = avctx->height / nslices;
if ((avctx->width & 3) || (avctx->height & 3)) {
avpriv_request_sample(avctx, "Frame dimensions %dx%d",
avctx->width, avctx->height);
@@ -513,7 +512,7 @@ static int dxtory_decode_v2_420(AVCodecContext *avctx, AVFrame *pic,
{
GetByteContext gb;
GetBitContext gb2;
- int nslices, slice, slice_height, ref_slice_height;
+ int nslices, slice, slice_height;
int cur_y, next_y;
uint32_t off, slice_size;
uint8_t *Y, *U, *V;
@@ -533,7 +532,6 @@ static int dxtory_decode_v2_420(AVCodecContext *avctx, AVFrame *pic,
return AVERROR_PATCHWELCOME;
}
- ref_slice_height = avctx->height / nslices;
if ((avctx->width & 1) || (avctx->height & 1)) {
avpriv_request_sample(avctx, "Frame dimensions %dx%d",
avctx->width, avctx->height);