Fix incorrect free on error

This commit is contained in:
Ari Lemmetti 2015-08-21 18:26:12 +03:00
parent 4103bd2786
commit 3661f3f3f5

View file

@ -192,7 +192,7 @@ int main(int argc, char *argv[])
img_in = frame_in;
} else {
// EOF or some error
api->picture_free(img_in);
api->picture_free(frame_in);
img_in = NULL;
if (!feof(input)) {
fprintf(stderr, "Failed to read a frame %d\n", frames_read);