libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 197131b3d3b5e1b10cccd9be4956f07772721d79
parent 1770d987ec7bef1e3585e3bb13b4fb5721b316fb
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 14 Jan 2011 18:35:49 +0000

init

Diffstat:
Msrc/plugins/thumbnailffmpeg_extractor.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/thumbnailffmpeg_extractor.c b/src/plugins/thumbnailffmpeg_extractor.c @@ -415,7 +415,7 @@ extract_video (const unsigned char *data, AVCodec *codec = NULL; AVFrame *frame = NULL; uint8_t *encoded_thumbnail; - int video_stream_index; + int video_stream_index = -1; int thumb_width; int thumb_height; int i; @@ -495,7 +495,8 @@ RETRY_PROBE: break; } - if ( (codec_ctx == NULL) || + if ( (video_stream_index == -1) || + (codec_ctx == NULL) || (codec == NULL) || (codec_ctx->width == 0) || (codec_ctx->height == 0) )