commit 0235b3c2a10d430fa14b1ea8d12b8dbfa9213c9c parent 2a7b18c509bf5f6591fcd358a3bbc6cedab6367e Author: Heikki Lindholm <holin@iki.fi> Date: Sat, 20 Sep 2008 08:33:30 +0000 fix Diffstat:
| M | src/plugins/thumbnailffmpeg/thumbnailextractorffmpeg.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/thumbnailffmpeg/thumbnailextractorffmpeg.c b/src/plugins/thumbnailffmpeg/thumbnailextractorffmpeg.c @@ -386,7 +386,7 @@ libextractor_thumbnailffmpeg_extract (const char *filename, } } - if (!frame_finished) + if (!frame_finished || codec_ctx->width == 0 || codec_ctx->height == 0) goto out; sar_num = codec_ctx->sample_aspect_ratio.num;