Blender Git Loki
Git Commits -> Revision 8a0da0b
Revision 8a0da0b by Sergey Sharybin (master) November 15, 2011, 07:00 (GMT) |
Fix #29202: Crash - VSE Cross strip probably leads to this Crash was caused by several conditions: - Frame which failed to decode tried to be converted to RGB colorspace and some filters like deinterlacing used to be applied as well (it's avscale stuff sws_scale where crash happened). - In some cases it happened reading of freed memory when calling sws_scale function. Looks like it happened because of freeing packet on which decoding of frame finished and reading next packet. Solved this two issues by making YUV->RGB conversion as soon as frame was decoded in ffmpeg_decode_video_frame (such postprocessing used to happen in callee of this function ffmpeg_fetchibuf), so now sws_scale would be called before freeing packet on which decoding of frame finished and it wouldn't be called in cases when decoding of frame failed. If decoding of frame failed, it'll be black ibuf returned to the sequencer. |
Commit Details:
Full Hash: 8a0da0b59e0277b48bf4dbb00c6a01d026e6d0bb
SVN Revision: 41854
Parent Commit: e8906f5
Lines Changed: +6, -4
1 Modified Path:
/source/blender/imbuf/intern/anim_movie.c (+6, -4) (Diff)