improve not very helpful error message.

This commit is contained in:
Campbell Barton 2012-08-02 10:42:40 +00:00
parent 63d071cc3a
commit 7653eae381

@ -394,7 +394,9 @@ static ImBuf *avi_fetchibuf(struct anim *anim, int position)
int *tmp;
int y;
if (anim == NULL) return (NULL);
if (anim == NULL) {
return NULL;
}
#if defined(_WIN32) && !defined(FREE_WINDOWS)
if (anim->avistreams) {
@ -418,7 +420,7 @@ static ImBuf *avi_fetchibuf(struct anim *anim, int position)
AVI_get_stream(anim->avi, AVIST_VIDEO, 0));
if (tmp == NULL) {
printf("Error reading frame from AVI");
printf("Error reading frame from AVI: '%s'\n", anim->name);
IMB_freeImBuf(ibuf);
return NULL;
}