[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7452 - Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavc
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7452 - Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec |
Date: |
Fri, 18 Jul 2008 21:59:01 -0600 (MDT) |
Author: grothoff
Date: 2008-07-18 21:59:01 -0600 (Fri, 18 Jul 2008)
New Revision: 7452
Modified:
Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec/imgconvert.c
Log:
fix potential memcpy of size -1 -- mega-outch
Modified: Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec/imgconvert.c
===================================================================
--- Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec/imgconvert.c
2008-07-19 03:49:58 UTC (rev 7451)
+++ Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec/imgconvert.c
2008-07-19 03:59:01 UTC (rev 7452)
@@ -896,6 +896,8 @@
for(i = 0; i < pf->nb_channels; i++) {
int w, h;
int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);
+ if (bwidth < 0)
+ continue; /* unknown pixel type, ignore */
w = width;
h = height;
if (i == 1 || i == 2) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7452 - Extractor/src/plugins/thumbnailffmpeg/ffmpeg/libavcodec,
gnunet <=