[Ffmpeg-devel] patch for libswscale: error handling added to rgb2rgb_template.c:1489
Måns Rullgård
mans
Sun Apr 1 17:49:13 CEST 2007
Ulrich Habel <espero7757 at gmx.net> writes:
> Hello list,
> having played with kdenlive I produced several times an exception in
>
> libswscale --> ffmpeg --> lmt/lmt++ --> kdenlive
>
> repository:
> ------------
> svn://svn.mplayerhq.hu/mplayer/trunk/libswscale/rgb2rgb_template.c Line 1489
> (Rev. 22862)
>
> in function:
> ------------
> static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t
> *usrc, const uint8_t *vsrc, uint8_t *dst,
> long width, long height,
> long lumStride, long chromStride, long dstStride, long vertLumPerChroma)
>
> due to the fact:
> ------------------
> the parameters ysrc, usrc and/or vsrc are null pointers because
> sometimes the videostream seems to be in a not sane state.
>
> my modifications:
> --------------------
> added sanity check and a fallback handling for the destination buffer.
I'd rather try to find out why these pointers are null in the first place.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list