mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
avcodec/libutvideodec: use av_frame_move_ref()
AVFrames cannot be copied literally, their definition is in avutil and their extended_data can point to their data[] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
999ee28124
commit
4c1b4ae1ba
@ -164,7 +164,7 @@ static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
*(AVFrame *)data = *pic;
|
av_frame_move_ref((AVFrame*)data, pic);
|
||||||
|
|
||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user