Output error messages to stderr

This commit is contained in:
Ari Lemmetti 2015-08-17 14:40:35 +03:00
parent 3da71b62bf
commit 82cf4e8ff4
2 changed files with 2 additions and 2 deletions

View file

@ -504,7 +504,7 @@ void get_extended_block_avx2(int xpos, int ypos, int mv_x, int mv_y, int off_x,
if (sample_out_of_bounds){
out->buffer = MALLOC(kvz_pixel, (width + filter_size) * (width + filter_size));
if (!out->buffer){
printf("Memory allocation failed!\n");
fprintf(stderr, "Memory allocation failed!\n");
assert(0);
}
out->stride = width + filter_size;

View file

@ -505,7 +505,7 @@ void get_extended_block_generic(int xpos, int ypos, int mv_x, int mv_y, int off_
if (sample_out_of_bounds){
out->buffer = MALLOC(kvz_pixel, (width + filter_size) * (width + filter_size));
if (!out->buffer){
printf("Memory allocation failed!\n");
fprintf(stderr, "Memory allocation failed!\n");
assert(0);
}
out->stride = width + filter_size;