Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsie committed Sep 19, 2016
1 parent b13b8c8 commit df5d286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libjasper/mif/mif_cod.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ static int mif_process_cmpt(mif_hdr_t *hdr, char *buf)
break;
}
}
jas_tvparser_destroy(tvp);
if (!cmpt->sampperx || !cmpt->samppery) {
goto error;
}
if (mif_hdr_addcmpt(hdr, hdr->numcmpts, cmpt)) {
goto error;
}
jas_tvparser_destroy(tvp);
return 0;

error:
Expand Down

0 comments on commit df5d286

Please sign in to comment.