diff options
author | Mans Rullgard <mans@mansr.com> | 2012-12-10 13:57:10 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-02-08 01:08:19 +0400 |
commit | ed62e6e3c3ca8066456392d5e0dbe12c49d67a6c (patch) | |
tree | 5c7a86304765368f60836501cf78fd0a678005d9 /libavcodec | |
parent | b5b7b75e91e291c810ebd01868a42b53f267a87c (diff) |
mjpegdec: use put_pixels instead of copy_block8
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpegdec.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index d13c85e6d7..e63287a46b 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -864,8 +864,9 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, ptr = data[c] + block_offset; if (!s->progressive) { if (copy_mb) - copy_block8(ptr, reference_data[c] + block_offset, - linesize[c], linesize[c], 8); + s->dsp.put_pixels_tab[1][0](ptr, + reference_data[c] + block_offset, + linesize[c], 8); else { s->dsp.clear_block(s->block); if (decode_block(s, s->block, i, @@ -979,8 +980,9 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss, if (last_scan) { if (copy_mb) { - copy_block8(ptr, reference_data + block_offset, - linesize, linesize, 8); + s->dsp.put_pixels_tab[1][0](ptr, + reference_data + block_offset, + linesize, 8); } else { s->dsp.idct_put(ptr, linesize, *block); ptr += 8; |