av_log(ctx, AV_LOG_ERROR, "code %d: %s\n", err_code, err_msg);
- return err_code;
+ return AVERROR_EXTERNAL;
}
static int convert_chroma_location(enum AVChromaLocation chroma_location)
ret = zimg_filter_graph_process(s->graph, &src_buf, &dst_buf, s->tmp, 0, 0, 0, 0);
if (ret) {
- print_zimg_error(link->dst);
+ ret = print_zimg_error(link->dst);
goto fail;
}
ret = zimg_filter_graph_process(s->alpha_graph, &src_buf, &dst_buf, s->tmp, 0, 0, 0, 0);
if (ret) {
- print_zimg_error(link->dst);
+ ret = print_zimg_error(link->dst);
goto fail;
}
} else if (odesc->flags & AV_PIX_FMT_FLAG_ALPHA) {