git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30d6250
)
mimic: remove a pointless cast.
author
Anton Khirnov
<anton@khirnov.net>
Thu, 27 Dec 2012 08:01:38 +0000
(09:01 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 29 Jan 2013 06:31:24 +0000
(07:31 +0100)
libavcodec/mimic.c
patch
|
blob
|
history
diff --git
a/libavcodec/mimic.c
b/libavcodec/mimic.c
index
9a4aa3d
..
8ab1c9e
100644
(file)
--- a/
libavcodec/mimic.c
+++ b/
libavcodec/mimic.c
@@
-297,7
+297,7
@@
static int decode(MimicContext *ctx, int quality, int num_coeffs,
* Flip the buffer upside-down and put it in the YVU order to match the
* way Mimic encodes frames.
*/
* Flip the buffer upside-down and put it in the YVU order to match the
* way Mimic encodes frames.
*/
-static void prepare_avpic(MimicContext *ctx, AVPicture *dst, AV
Pictur
e *src)
+static void prepare_avpic(MimicContext *ctx, AVPicture *dst, AV
Fram
e *src)
{
int i;
dst->data[0] = src->data[0] + ( ctx->avctx->height - 1) * src->linesize[0];
{
int i;
dst->data[0] = src->data[0] + ( ctx->avctx->height - 1) * src->linesize[0];
@@
-374,7
+374,7
@@
static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ctx->next_cur_index = (ctx->cur_index - 1) & 15;
prepare_avpic(ctx, &ctx->flipped_ptrs[ctx->cur_index],
ctx->next_cur_index = (ctx->cur_index - 1) & 15;
prepare_avpic(ctx, &ctx->flipped_ptrs[ctx->cur_index],
-
(AVPicture*)
&ctx->buf_ptrs[ctx->cur_index]);
+ &ctx->buf_ptrs[ctx->cur_index]);
ff_thread_finish_setup(avctx);
ff_thread_finish_setup(avctx);