You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
Replace AVFrame pointer type punning by proper struct member assignments.
This commit is contained in:
@@ -191,7 +191,7 @@ static int ir2_decode_frame(AVCodecContext *avctx,
|
||||
s->picture.data[1], s->picture.linesize[1], ir2_luma_table);
|
||||
}
|
||||
|
||||
*picture= *(AVFrame*)&s->picture;
|
||||
*picture = s->picture;
|
||||
*data_size = sizeof(AVPicture);
|
||||
|
||||
return buf_size;
|
||||
|
||||
Reference in New Issue
Block a user