[FFmpeg-devel] [PATCH] invalid array index(< 0)
Michael Niedermayer
michaelni
Thu Oct 18 12:29:02 CEST 2007
Hi
On Thu, Oct 18, 2007 at 01:54:22PM +0800, Limin Wang wrote:
> Hi,
>
> ff_find_unused_picture() may return -1 in case it can't get unused picture,
> attached patch try to avoid visit invalid array pointer if error happend.
no ff_find_unused_picture() may not return -1
the code is quite clear:
assert(0);
return -1;
}
return -1 -> bug elsewhere
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- 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-devel/attachments/20071018/f204c3d4/attachment.pgp>
More information about the ffmpeg-devel
mailing list