mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
cljr: remove useless casts
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
baf3b6e594
commit
bbc10185ee
@ -37,7 +37,7 @@ static av_cold int common_init(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
CLJRContext * const a = avctx->priv_data;
|
CLJRContext * const a = avctx->priv_data;
|
||||||
|
|
||||||
avctx->coded_frame = (AVFrame*)&a->picture;
|
avctx->coded_frame = &a->picture;
|
||||||
a->avctx = avctx;
|
a->avctx = avctx;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -53,7 +53,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
CLJRContext * const a = avctx->priv_data;
|
CLJRContext * const a = avctx->priv_data;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
AVFrame *picture = data;
|
AVFrame *picture = data;
|
||||||
AVFrame * const p= (AVFrame*)&a->picture;
|
AVFrame * const p = &a->picture;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
if(p->data[0])
|
if(p->data[0])
|
||||||
@ -89,7 +89,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*picture= *(AVFrame*)&a->picture;
|
*picture = a->picture;
|
||||||
*data_size = sizeof(AVPicture);
|
*data_size = sizeof(AVPicture);
|
||||||
|
|
||||||
emms_c();
|
emms_c();
|
||||||
|
Loading…
Reference in New Issue
Block a user