[FFmpeg-cvslog] r11562 - trunk/libavformat/mxf.c
Michael Niedermayer
michaelni
Sat Jan 19 21:35:40 CET 2008
On Sat, Jan 19, 2008 at 04:21:30PM +0100, bcoudurier wrote:
> Author: bcoudurier
> Date: Sat Jan 19 16:21:30 2008
> New Revision: 11562
>
> Log:
> check malloc return
>
> Modified:
> trunk/libavformat/mxf.c
>
> Modified: trunk/libavformat/mxf.c
> ==============================================================================
> --- trunk/libavformat/mxf.c (original)
> +++ trunk/libavformat/mxf.c Sat Jan 19 16:21:30 2008
> @@ -281,6 +281,8 @@ static int mxf_decrypt_triplet(AVFormatC
>
> if (!mxf->aesc && s->key && s->keylen == 16) {
> mxf->aesc = av_malloc(av_aes_size);
> + if (!mxf->aesc)
> + return -1;
shouldnt all these be AVERROR(ENOMEM) ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080119/11698b9e/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list