mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 14:00:43 +00:00
Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com Originally committed as revision 14154 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
24909d3983
commit
6413d91d08
@ -383,7 +383,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
{
|
{
|
||||||
PNGDecContext * const s = avctx->priv_data;
|
PNGDecContext * const s = avctx->priv_data;
|
||||||
AVFrame *picture = data;
|
AVFrame *picture = data;
|
||||||
AVFrame * const p= (AVFrame*)&s->picture;
|
AVFrame * const p= &s->picture;
|
||||||
uint32_t tag, length;
|
uint32_t tag, length;
|
||||||
int ret, crc;
|
int ret, crc;
|
||||||
|
|
||||||
@ -582,8 +582,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exit_loop:
|
exit_loop:
|
||||||
*picture= *(AVFrame*)&s->picture;
|
*picture= s->picture;
|
||||||
*data_size = sizeof(AVPicture);
|
*data_size = sizeof(AVFrame);
|
||||||
|
|
||||||
ret = s->bytestream - s->bytestream_start;
|
ret = s->bytestream - s->bytestream_start;
|
||||||
the_end:
|
the_end:
|
||||||
@ -600,8 +600,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
static av_cold int png_dec_init(AVCodecContext *avctx){
|
static av_cold int png_dec_init(AVCodecContext *avctx){
|
||||||
PNGDecContext *s = avctx->priv_data;
|
PNGDecContext *s = avctx->priv_data;
|
||||||
|
|
||||||
avcodec_get_frame_defaults((AVFrame*)&s->picture);
|
avcodec_get_frame_defaults(&s->picture);
|
||||||
avctx->coded_frame= (AVFrame*)&s->picture;
|
avctx->coded_frame= &s->picture;
|
||||||
dsputil_init(&s->dsp, avctx);
|
dsputil_init(&s->dsp, avctx);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user