[FFmpeg-cvslog] utvideo: Remove unused variable 'src_size'
Derek Buitenhuis
git at videolan.org
Sun Apr 15 23:36:04 CEST 2012
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Sat Apr 14 17:26:58 2012 -0400| [5096399df29ce91874165bdf22461b1c5020cda2] | committer: Derek Buitenhuis
utvideo: Remove unused variable 'src_size'
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5096399df29ce91874165bdf22461b1c5020cda2
---
libavcodec/utvideo.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c
index 95cea5f..378a1f7 100644
--- a/libavcodec/utvideo.c
+++ b/libavcodec/utvideo.c
@@ -112,7 +112,7 @@ static int build_huff(const uint8_t *src, VLC *vlc, int *fsym)
static int decode_plane(UtvideoContext *c, int plane_no,
uint8_t *dst, int step, int stride,
int width, int height,
- const uint8_t *src, int src_size, int use_pred)
+ const uint8_t *src, int use_pred)
{
int i, j, slice, pix;
int sstart, send;
@@ -151,7 +151,6 @@ static int decode_plane(UtvideoContext *c, int plane_no,
}
src += 256;
- src_size -= 256;
send = 0;
for (slice = 0; slice < c->slices; slice++) {
@@ -431,8 +430,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
for (i = 0; i < c->planes; i++) {
ret = decode_plane(c, i, c->pic.data[0] + rgb_order[i], c->planes,
c->pic.linesize[0], avctx->width, avctx->height,
- plane_start[i], plane_start[i + 1] - plane_start[i],
- c->frame_pred == PRED_LEFT);
+ plane_start[i], c->frame_pred == PRED_LEFT);
if (ret)
return ret;
if (c->frame_pred == PRED_MEDIAN)
@@ -447,8 +445,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
for (i = 0; i < 3; i++) {
ret = decode_plane(c, i, c->pic.data[i], 1,
c->pic.linesize[i], avctx->width >> !!i, avctx->height >> !!i,
- plane_start[i], plane_start[i + 1] - plane_start[i],
- c->frame_pred == PRED_LEFT);
+ plane_start[i], c->frame_pred == PRED_LEFT);
if (ret)
return ret;
if (c->frame_pred == PRED_MEDIAN) {
@@ -469,8 +466,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
for (i = 0; i < 3; i++) {
ret = decode_plane(c, i, c->pic.data[i], 1,
c->pic.linesize[i], avctx->width >> !!i, avctx->height,
- plane_start[i], plane_start[i + 1] - plane_start[i],
- c->frame_pred == PRED_LEFT);
+ plane_start[i], c->frame_pred == PRED_LEFT);
if (ret)
return ret;
if (c->frame_pred == PRED_MEDIAN) {
More information about the ffmpeg-cvslog
mailing list