Fix T100741: Update FFMPEG Dimensions
Update the animation's dimensions within ffmpeg_fetchibuf in case it has changed because of dynamic resolution (possible with WebM). Differential Revision: https://developer.blender.org/D15842 Reviewed by Richard Antalik
This commit is contained in:
parent
d12f0d3f70
commit
d5554cdc7c
Notes:
blender-bot
2025-02-14 01:43:05 +00:00
Referenced by issue #100741, UI Crash when opening a folder containing a .webm with dynamic A/R
@ -1406,6 +1406,10 @@ static ImBuf *ffmpeg_fetchibuf(struct anim *anim, int position, IMB_Timecode_Typ
|
||||
|
||||
ffmpeg_decode_video_frame_scan(anim, pts_to_search);
|
||||
|
||||
/* Update resolution as it can change per-frame with WebM. See T100741 & T100081. */
|
||||
anim->x = anim->pCodecCtx->width;
|
||||
anim->y = anim->pCodecCtx->height;
|
||||
|
||||
IMB_freeImBuf(anim->cur_frame_final);
|
||||
|
||||
/* Certain versions of FFmpeg have a bug in libswscale which ends up in crash
|
||||
|
Loading…
x
Reference in New Issue
Block a user