Merge "Fix the decoder seg fault when frame is corrupted."
This commit is contained in:
commit
15ee8a8c45
2
vpxdec.c
2
vpxdec.c
@ -977,7 +977,7 @@ static int main_loop(int argc, const char **argv_) {
|
|||||||
if (do_md5) {
|
if (do_md5) {
|
||||||
update_image_md5(img, planes, &md5_ctx);
|
update_image_md5(img, planes, &md5_ctx);
|
||||||
} else {
|
} else {
|
||||||
write_image_file(img, planes, outfile);
|
if (!corrupted) write_image_file(img, planes, outfile);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
generate_filename(outfile_pattern, outfile_name, PATH_MAX, img->d_w,
|
generate_filename(outfile_pattern, outfile_name, PATH_MAX, img->d_w,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user