commit b58188b44af83495828a8f8791841c2d1eff16f5
parent 150ca6a82afd79aa427154710b37af3013f04dfc
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 5 Aug 2012 23:30:39 +0000
-do not trust 0 picture answer
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/plugins/mpeg_extractor.c b/src/plugins/mpeg_extractor.c
@@ -62,6 +62,7 @@ EXTRACTOR_mpeg_extract_method (struct EXTRACTOR_ExtractContext *ec)
mpeg2_close (handle);
return;
}
+ buf = NULL;
have_gop = 0;
while (1)
{
@@ -104,7 +105,8 @@ EXTRACTOR_mpeg_extract_method (struct EXTRACTOR_ExtractContext *ec)
ADD ("MPEG1", EXTRACTOR_METATYPE_FORMAT_VERSION);
break;
case STATE_GOP:
- if (NULL != info->gop)
+ if ( (NULL != info->gop) &&
+ (0 != info->gop->pictures) )
{
snprintf (gop_format,
sizeof (gop_format),